Vi configuration file change (Ubuntu)

Source: Internet
Author: User
Vi configuration file change (Ubuntu) in ubuntu the vi configuration file is in/etc/vim/vimrc, you need to use the root permission to modify 1. display the row number to add a new row at the end of the file, enter setnu2, syntax highlighting, and find & quot; syntaxon in the file. remove the double quotation marks & quot ;... vi configuration file change (Ubuntu) in ubuntu the vi configuration file is in/etc/vim/vimrc, you need to use the root permission to modify 1. display the row number to add a new row at the end of the file, enter set nu 2. syntax highlighting. find "syntax on" in the file and remove the double quotation marks. double quotation marks indicate the meaning of the comment. 3. add a line at the end of the file automatically, input set autoindent to add a row. input set cindent, where autoindent is Auto Indent. cindent is especially for C language syntax Auto Indent. note: If the above settings are set, VIM does not take the corresponding action, upgrade VIM to the latest version. Generally, you only need to enter the following command on the terminal: sudo apt-get install vim
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.