1. Need to install vim under the shell command to knock command Vimtutor IDE integrated development Environment 1.vim Three modes of operation A. Command mode B. Edit mode C. Last-line mode command mode to modify the file edit mode line adjustment, query, replace, save exit 3. Related operation in command mode,-save exit: Shift+zz
-Code formatting: gg=g
-Cursor movement: Up and down: HJKL cursor moves to the beginning: 0 cursor moves to the end of the line: $ cursor moves to the file header: GG cursor moves to tail of file: G line jump 123 line: 123G line number n Enter: The current line moves down n rows
Find command/xxx from top to bottom? xxx look up keyword toggle: n/n #: Cursor moves to the top of the keyword to be searched, keyboard Input # View man Document chapter number +k (SHIFT+K) Man man View document
VIM Command mode cursor movement + find