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