Lecture 9:vim:an Advanced Text editor Vim editor

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.