• Archives

  • Categories

May 16

The 10 essential vi editor commands

This is just so annoying. I had to use the vi editor and it’s hard for me. I’ve gotten use to the mouse and backspaces and enter and all the Word shortcuts. To downgrade to this vi editor sucks.

Ten vi editor commands

  1. To insert – a (INS works too it seems)
  2. To insert on new line below the cursor – o
  3. To replace the one character under your cursor – r
  4. Left Down Up RIght – h j k l (Arrow keys works too it seems)
  5. Undo – u
  6. Delete the line – dd
  7. Delete the character on cursor – x
  8. To get out of the Editing mode – ESC
  9. To quit the bloody editor without saving – :q!
  10. To save and quit – :wq

This is by no way the complete list, the complete list have hundreds of commands that only a true geek who reaches the stage of nirvana can remember.

This post is more for my personal note. I encounter editing when using the visudo command.

Possibly related:

  1. Allow sudo to insult you (Ubuntu)
  2. E Text Editor has been opensourced, Linux version coming
  3. List of stop words
  4. A list of things that require fixing

“The 10 essential vi editor commands”
one comment

  1. [...] how you do it, you have to edit ’sudoers’. It uses vi commands which I hate. You’ll be prompted for your password. sudo [...]

    Jun 21

Leave your comment.


WordPress powered and Django inspired.
Love and elephants come after.
RSS: Posts and comments.