Full-screen editor: VIM
Vi:visual interface
VI, VI improved
Vim:
Pattern:
Edit mode: Command mode
Input mode:
Last-line mode:
edit Mode - Input mode:
I:insert,
a : Append,
o : New Line,
I: beginning
A : End of line
O : New row above
Input Mode - edit mode:
Esc
edit Mode - last-line mode:
:
last-line mode - edit Mode
Esc
Open Vim:
# VIM
# Vim/path/to/somefile
+# : # is the line number , after opening the file, the cursor navigates to page # Line Start
+/pattern : The cursor is positioned to match the first one after opening Pattern Place
Close Vim :
: Q exit directly without making changes
: q! do not save exit after change
: Wq exit after saving changes
: x Save changes Exit
ZZ : Save Exit
Cursor Jump:
Jump between characters:
h: left
L: Right
J: downward
K: Upward
#COMMAND: the arrow key before the number indicates that a few characters are skipped in the specified direction
Jump between words:
Vim Editor Usage Summary