VI Common functions

Source: Internet
Author: User

: W saves the file but does not exit vi:w. File to save the modification to file without exiting vi:w! Force save, do not eject Vi:wq save file and exit vi:wq! Force save file and exit Viq: Do not save file, exit vi:q! do not save file, Force quit vi:e! Discard all changes, from the last time you save the file and then edit the screen tumbling Class command ctrl+u: To file The first half screen ctrl+d: to the end of the file half screen ctrl+f: to the end of the file to flip a screen ctrl+b to the file first screen NZ: Roll the nth row to the top of the screen, Rolls the current line to the top of the screen when n is not specified. If you enter "U" two times and your text reverts to the original, it should be that your vim is configured in VI compatibility mode. Redo If you undo too much, you can enter Ctrl-r (redo) to rewind the previous command.

VI Common functions

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.