Set nocompatiblesource $ vimruntime/vimrc_example.vimsource $ vimruntime/mswin. vimbehave mswin "added configuration information set lines = 40 columns = 155" set nu "display row number syntax on" syntax highlight colorscheme Koehler "set color scheme set cursorline" highlight current line Set autowrite "automatically save set renders" Open Status Bar ruler set cursorline "highlight current line set magic" set magic set guioptions-= T "Hide toolbar set guioptions-= m" Hide menu bar set nobackup "Disable the generation of temporary files set laststatus = 1 Set noswapfileset Tabstop = 4 set autoindentset cindentset softtabstop = 4 set shiftwidth = 4 set guifont = courier_new: H16: cansi "Set Font" set encoding = UTF-8 "set character encoding 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-8set diffexpr = mydiff () function mydiff () Let opt = '-A -- binary' If & diffopt = ~ 'Icase' | let opt = opt. '-I' | endif if & diffopt = ~ 'Iwhite' | let opt = opt. '-B' | endif let arg1 = V: fname_in if arg1 = ~ ''| Let arg1 = '"'. arg1. '"' | endif let arg2 = V: fname_new if arg2 = ~ ''| Let arg2 = '"'. arg2. '"' | endif let arg3 = V: fname_out if arg3 = ~ ''| Let arg3 = '"'. arg3. '"' | endif let eq ='' if $ vimruntime = ~ ''If & SH = ~ '\ <Cmd' let cmd = '""'. $ vimruntime. '\ diff "'Let eq ='" 'else let cmd = substitute ($ vimruntime ,'','"',''). '\ diff "' endif else let cmd = $ vimruntime. '\ diff' endif if (has ("gui_running") set guifont = bitstream \ Vera \ Sans \ mono \ 20 endif silent execute '! '. Cmd. ''. Opt. arg1.''. arg2.'> '. arg3. eqendfunction
VI configuration file