Two modes-edit mode: You can perform normal editing operations at the bottom left--INSERT-- "input i in command mode to enter edit mode"-Command mode: You can press ESC in edit mode by clicking on the command in the bottom left. Ability to return to command mode "* * *" the most important command: q! do not save the exit, once the error is modified, discard the changes! Common commands/xxx find Xxxn perform last find 0 to beginning w the cursor moves backwards one word b cursor moves forward one word x Delete current one character DW delete one word d Delete to end of line DD delete entire row v select entire row y copy the contents of the selection to the Clipboard p paste the contents of the Clipboard under the cursor u undo the last modification numg move the cursor to the specified line (num). (e.g. 10G is to line 10th) GG to file start G to end of file: Wq Save exit
Vim Basic Command Notes