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


Leave a Reply




Powered by WP Hashcash

Security Code: