--vim Editor Tutorial (VIM (vi upgrade), recommended VIM)
Open the file (if the file does not exist, after it is created, save, write from memory to the hard disk, do not save, delete the file)
Vim filename
The VIM editor has 3 modes: Command mode, insert mode, tail line mode.
Command mode: The state that started when the file was first entered. U is the Undo key
Command mode enters insert mode: shortcut keys can be used
I (current cursor position insertion)
I (opening of the Bank)
A (after the current cursor position)
A (at the end of the current cursor)
O
O
Insert mode returns Command mode: ESC
Insert mode: used primarily for editing text.
Tail line mode: Mainly used for, save, find, delete, replace and so on function.
Command mode enters tail line mode, using:
W: Save
Q: Exit
!: Forced exit
Wq: Save exit
Set NU: Sets the line number (set in memory)
This article from the "Jane Answers Life" blog, reproduced please contact the author!
Vim Editor Explained