SetNocompatiblesource $VIMRUNTIME/Vimrc_example.vimsource $VIMRUNTIME/Mswin.vimbehave MswinSetNobackupSetDiffexpr=Mydiff () function Mydiff () let opt='-A --binary'if&diffopt =~'icase'| Let opt = opt.'- I.'|endifif&diffopt =~'Iwhite'| Let opt = opt.'- b'|Endiflet arg1=v:fname_inifArg1 =~' '| Let arg1 ='"'. Arg1.'"'|Endiflet arg2=v:fname_newifArg2 =~' '| Let arg2 ='"'. Arg2.'"'|Endiflet Arg3=V:fname_outifArg3 =~' '| Let Arg3 ='"'. Arg3.'"'|endiflet eq="'if$VIMRUNTIME =~' 'if&sh =~'\<cmd'Let cmd='""'. $VIMRUNTIME.'\diff "'Let eq='"'ElseLet cmd= Substitute ($VIMRUNTIME,' ','" ',"') .'\diff "'endifElseLet cmd= $VIMRUNTIME.'\diff'Endifsilent Execute'!'. Cmd.' '. Opt. Arg1.' '. Arg2.'>'. Arg3. Eqendfunction"Show Line NumbersSetnu!colorscheme Desert Syntax enable syntax onSetencoding=utf-8Setfileencodings=utf-8, chinese,latin-1ifHas ("Win32")Setfileencoding=ChineseElseSetfileencoding=utf-8endif"Fix Menu garbledSOURCE $VIMRUNTIME/Delmenu.vimsource $VIMRUNTIME/Menu.vim"solve Consle output garbledLanguage Messages zh_cn.utf-8"Nerdtree shortcut KeysNmap <F2>: Nerdtree <CR>"Nerdtree.vimLet g:nerdtreewinpos=" Left"Let g:nerdtreewinsize= -Let g:nerdtreeshowlinenumbers=1Let g:neocomplcache_enable_at_startup=1"default Maximized window opensAu guienter * Simalt ~x"set Tab IndentSetSmarttabSettabstop=4SetShiftwidth=4SetExpandtab
Vim configuration, my native configuration