Ubuntu: install and use vim, ubuntuvim

Source: Internet
Author: User

Ubuntu: install and use vim, ubuntuvim

Ubuntu: install and use vim

1. Install vim

Run the following command on the terminal: sudo apt-get install vim-gtk.

Ii. Use vim

Operation Mode:
1. In normal mode, the default mode is normal. You can only view documents in this mode.
Press I (insert) to enter the insert mode
2. edit mode and insert mode
In this mode, you can edit the document, Press esc to exit the insert mode, and enter normal mode.
3. Command mode: In general mode, press: To Enter command mode
-Q: exit safely. If this document is not operated, press q to exit vim.
-Q! : If you have modified the content but do not want to save it, q! Force exit
-Wq: Save and exit
-Set number: displays the row number.
-Set nonumber: Cancel row number display

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.