VIM shortcuts

Some tips and shortcuts for VIM

Search and replace:


:%s/toto/tata/g

"k" up
"h" left
"l" right (lowercase L)
"j" down
"D" Delete to the end of the line from the current cursor position.
"dd" delete whole line
"x" delete character under cursor
"ZZ" exit and save
":quit!" quit without saving


This entry was posted in Linux, Solaris and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>