Text editor, word processor
Ascii
Nano, SED
Vi:visual Interface
Vim:vi improved
Full screen editor, patterned editor
Vim mode:
Edit mode (Command mode)
Input mode
Last line mode
------------------------------Mode conversion:
Edit--> Input:
I: Switch to input mode at the front of the character at the current cursor;
A: After the current cursor is the character, the input mode;
O: Creates a new row below the line with the current cursor and moves to input mode
I: Switch to input mode at the beginning of the current cursor
A: At the end of the line at the current cursor, switch to input mode
O: Creates a new row above the line on which the current cursor is located and moves to input mode
Enter--> edit:
[ESC] Key
Edit--> last line:
:
Last line--> edit:
[Esc],[esc]
Input mode and last line mode cannot be converted directly
First, open the file
#vim/path/to/somefile
Vim +# #为数字, that is, open the file direct cursor in the first few lines
Vim + directly on the last line
Vim +/pattern: Opens the file and navigates to the beginning of the line that was first matched by pattern
Default in edit mode