Configuration changes to Vim under Ubuntu

Source: Internet
Author: User

The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRC
  1. Show line Numbers

  2. Syntax highlighting

  3. Auto Indent

  4. Show commands in text

  5. Show nearest brace match

  6. Smart Match

  7. Smart Tips and search

"The following is commented out as they cause vim-to-behave a lot" differently from regular Vi. They is highly recommended though. " Set ShowCmd            "Show (partial) command in status line." Set Showmatch          "Show matching brackets." Set ignorecase         "Do case insensitive matching" set Smartcase          "Does smart case matching" set Incsearch          "Increment Al Search "Set Autowrite          " Automatically save before commands Like:next And:make "set hidden             " Hide buffers when t Hey is abandoned "set mouse=a            " Enable mouse usage (all modes)

Note that in the location file, use the "can comment

Automatic highlighting Code hints

"VIM5 and later versions support syntax highlighting. Uncommenting the next "line enables syntax highlighting by Default.if have (" syntax ")  syntax onendif
Command Prompt Code
"Uncomment the following to had Vim load indentation rules and plugins" according to the detected Filetype.if had ("Autoc md ")  filetype plugin indent onendif
Set Nuset autoindentset cindent "This was main for C Languageset tabstop=4set shiftwidth=4set softtabstop=4

Configuration changes to Vim under Ubuntu

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.