A list of useful vim (vi) editing commands.
cc
Replace entire line: delete and enter input mode.
:r filename
Paste contents of filename into current file.
:x
Write file and exit. Short for :wq
references, examples and tutorials
cc
Replace entire line: delete and enter input mode.
:r filename
Paste contents of filename into current file.
:x
Write file and exit. Short for :wq