View current settings:: Set all
Display line number:: Set Nu
Hidden line number:: Set Nonu
Do not save exit:: Q
Do not save forced exit:: q!
Save edits:: w
Save and exit:: Wq
Connect the two lines together: J
Connect n rows together: NJ cursor row and next n-1 line
Execute shell command::! Shell For example: View the current time::! Date
Read the results of the shell execution and place the result behind the cursor:: R!shell For example: List files in directory:: R!ls
Simple Encrypted File:: X
Vim +n filename Opens the file filename and places the cursor at the beginning of the nth line
Vim + filename Opens the file filename and places the cursor at the beginning of the last line
Vim +/pattern filename Opens the file and places the cursor in the first serial that matches the pattern
Vim-r filename recovers filename at the last vim crash