Common Vim configurations (~ /. Vimrc)

Source: Internet
Author: User

Common Vim configurations (~ /. Vimrc) "This must be first, beacuse it changes other options as a side effect. set nocompatible "show line numbersset number" display "-- INSERT --" when entering insert modeset showmode "incremental searchset incsearch" highlight matching search termsset hlsearch "set ic means case-insensitive search; noic means case-sensitive.set noic "allow backspacing over any character insert modeset backspace = indent, eol, start "do not wrap linesset nowrap" set mouse to work in the console "set mouse = a" keep 50 lines of command line historyset history = 50 "show the cursor positionset r.pdf" save backup fileset backup "the visual bell flashes the background instead of an audible bell. set visualbell "set sensible defaults for different types of text files. au filetype c set cindent tw = 79au filetype sh set ai et sw = 4 sts = 4 noexpandtabau filetype vim set ai et sw = 2 sts = 2 noexpandtab "indent new lines to match the current identationset autoindent "don't replace tabs with spacesset noexpandtab" use tabs at the start of a line, spaces when smarttab "show syntax highlightingsyntax on" show whitespace at the end of a linehighlight whitespaceEOF ctermbg = blue guibg = bluematch whitespaceEOF/\ s \ + $/set tabstop = 4 set limit = 4 set cursorline

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.