Skip to content

tool - vi a little more basics for simple editing

I am using the vi since a few years. A few months ago i realized that i am just using a bit of the mighty power of the vi. Thats why O`Reilly's Learning the vi editor was welcomed in my house :-). I have just finised a small part of the book but found already some "new" stuff for me. Thats why this entry is a supplement to my vi knowledge. But maybe there is something for you out there too.

  • :e! - returns you the last saved version of your file
  • W - move forward from word by word without considering symbols and punctuation
  • c2b - change two words backwards
  • c$ - change to the end of the line
  • cc - change the entire current line
  • C - change characters from current cursor position to the end of the line
  • s - substitute from current position
  • S - same as cc
  • R - puts you in "overwrite" mode
  • ~ - change case of your letter (Upper- to Lowercase and other way)
  • D - deletes from courrent position to the end of the line
  • x - deletes current character
  • X - deletes character before current position
  • xp - delete current character ad put after curser
  • y$ - yankes to the end of the line
  • . - repeats last command
  • O - opens blank line above curser
  • J - joins two (or more) lines
  • e - moves to the end of a word

Wow, after this list it is hard to believe that i am using the vi for years now, "we are absolute beginners" comes to my ears ;-).


No Trackbacks


Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Markdown format allowed
Form options