q:quitw:writeq! : Forced exit Useful function o: Insert one row below the current line O: The previous line of the current cursor inserts a line home: Beginning end: Line end I: Into insert mode ESC: Back to command mode command-line mode: G for the end of the file, G to jump to the first line of file 100G: Skip to line 100th: 150 return Jump straight to line 150/xxx: Find xxxn: Look down N: Look up the full screen color word, feel free to tap a few words on it. Search Replace:%s/ssl/sss/g DD: In the ACT unit DD do nothing, is delete, p for paste 5dd, 10DD. Delete 5 rows 10 lines yy: Copy 5yy copy 5 lines u/u: Undo/Revoke All Ctrl+r: Revert undo cc: Replace P: Paste in Visual mode: V (press V in pure character mode, you can control the cursor to adjust the selection action: Use "/" to search for what you need to find) Vim compiled window ctrl+w, s/v (Windows mode: s vertical screen/V horizontal screen) different files vim file; SP file Ways to save files: (in the case of improper operation, the file is not properly closed) vim passwd #直接X掉了terminal 1, two programs to open a file at the same time. 2, the file in the editing session of the collapse. Ls-a #产生了一个垃圾文件rm. MANUAL.CONF.SWP #但是, all operations not saved are lost Set all executable parameter 1, set Nu (when you set the line number, copy-paste preserves the line number) set Nonu #取消行号/Search keyword is case-sensitive: Set ignorecase ignores case
Lecture 9:vim:an Advanced Text editor Vim editor