Vim configuration file/etc/Vim/vimrc

Source: Internet
Author: User

If has ("Syntax ")
Syntax on
Endif

 

"If using a dark background within the editing area and syntax highlighting
"Turn on this option as well
"Set background = dark

"Uncomment the following to have Vim jump to the last position when
"Reopening a file
"If has (" autocmd ")
"Au bufreadpost * If line (" '\ "")> 1 & line ("' \" ") <= line (" $ ") | EXE" normal! G' \ "" | endif
"Endif

"Uncomment the following to have Vim load indentation rules and plugins
"According to the detected filetype.
"If has (" autocmd ")
"Filetype plugin indent on
"Endif

"The following are commented out as they cause Vim to behave a lot
"Differently from regular VI. They are highly recommended though.
Set AI
Set nu
Set number
Set showmatch
Set autoindent
Set cindent
Set noignorecase
Set ruler
Set scroloff = 5
Set tabstop = 3
Set shiftwidth = 3
Set wrap
Set showcmd "show (partial) command in status line.
Set showmatch "show matching brackets.
Set ignorecase "Do case insensitive matching
Set smartcase "do smart case matching
"Set incsearch" incremental search
"Set autowrite" automatically save before commands like: Next and: Make
"Set hidden" Hide buffers when they are abandoned
Set mouse = A "enable mouse usage (all modes)
Set smartindent
"Source a global configuration file if available
If filereadable ("/etc/Vim/vimrc. Local ")
Source/etc/Vim/vimrc. Local
Endif
Syntax enable
Syntax on

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.