Vim configuration file

Source: Internet
Author: User
Tags set background

Vim configuration file. vimrc


"Winpos 5 5" Setting window position
"Set lines=40 columns=155" setting window size
Set Nu "Show line number
Set go= "Do not graph button
"Color asmanian2" setting background theme
Set Guifont=courier_new:h10:cansi "Setting font
"Syntax on" syntax highlighting
Autocmd insertleave * se nocul "highlight when moving forward with light
Autocmd insertenter * se cul "highlight when moving forward with light
"Set ruler" display ruler
Set showcmd "Input command displayed, see clearly
The height of the "set cmdheight=1" command line (under the status line), set to 1
"Set Whichwrap+=<,>,h,l" allows backspace and cursor keys to span line boundaries (not recommended)
The "set scrolloff=3" cursor moves to the top and bottom of buffer to maintain 3 lines of distance
Set Novisualbell "Do not blink (do not understand)
Set statusline=%f%m%r%h%w\ [format=%{&ff}]\ [type=%y]\ [pos=%l,%v][%p%%]\%{strftime (\ "%d/%m/%y\-\%H:%M\")} " What the status line displays
Set Laststatus=1 "Start Display status line (1), always show status line (2)
Set foldenable "Allow folding
Set foldmethod=manual "Manual folding
"Set Background=dark" background using black
Set nocompatible "Remove nasty about VI consistency mode, avoid some bugs and limitations of previous versions
The show Chinese help
If version >= 603
Set HELPLANG=CN
Set Encoding=utf-8
endif
The Set color scheme
"ColorScheme Murphy
The font
"If (Has (" gui_running "))
"Set guifont=bitstream\ vera\ sans\ mono\ 10
"EndIf


Set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
Set Termencoding=utf-8
Set Encoding=utf-8
Set fileencodings=ucs-bom,utf-8,cp936
Set Fileencoding=utf-8
If has ("gui_running")
"ColorScheme default" It doesn ' t matter whether you comment this or not
:
Else
ColorScheme Desert "I ' d like-to-use modified desert scheme instead
"Of the default one, in the CLI mode of course;-)
endif

Vim configuration file

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.