VIM commands

Quick VIM commands for common editing tasks Search and replace :s/foo/bar/g – change ‘foo’ to ‘bar’ in the current line :%s/foo/bar/g – change ‘foo’ to ‘bar’ in all lines Cut and paste position cursor...