VIM commands

09/11/16 | by strav | Categories: *nix

Here are some VIM commands that come in handy:

Highlight current line: link
:set cursorline 

Delete all lines containing a pattern: link
: g/^\s*$/d 

Basic search and replace: link
:%s/foo/bar/g 

 

Pages: 1 2 3 4 5 6 7 8 9 10 11 ... 46 >>