首页 > 代码库 > vim 配置,我本机的配置

vim 配置,我本机的配置

set nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset nobackupset diffexpr=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_inif arg1 =~   | let arg1 = " . arg1 . " | endiflet arg2 = v:fname_newif arg2 =~   | let arg2 = " . arg2 . " | endiflet arg3 = v:fname_outif arg3 =~   | let arg3 = " . arg3 . " | endiflet eq = ‘‘if $VIMRUNTIME =~  if &sh =~ \<cmdlet cmd = "" . $VIMRUNTIME . \diff"let eq = "elselet cmd = substitute($VIMRUNTIME,  , " , ‘‘) . \diff"endifelselet cmd = $VIMRUNTIME . \diffendifsilent execute ! . cmd .   . opt . arg1 .   . arg2 .  >  . arg3 . eqendfunction"显示行号set nu!colorscheme desert syntax enable syntax onset encoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("win32")set fileencoding=chineseelseset fileencoding=utf-8endif"解决菜单乱码source $VIMRUNTIME/delmenu.vimsource $VIMRUNTIME/menu.vim"解决consle输出乱码language messages zh_CN.utf-8"NERDTree快捷键nmap <F2> :NERDTree <CR>" NERDTree.vimlet g:NERDTreeWinPos="left"let g:NERDTreeWinSize=25let g:NERDTreeShowLineNumbers=1let g:neocomplcache_enable_at_startup = 1"默认最大化窗口打开au GUIEnter * simalt ~x"设置tab缩进set smarttabset tabstop=4set shiftwidth=4set expandtab

 

vim 配置,我本机的配置