標籤:des style blog io ar color os sp on
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 =~ ‘\<cmd‘let cmd = ‘""‘ . $VIMRUNTIME . ‘\diff"‘let eq = ‘"‘elselet cmd = substitute($VIMRUNTIME, ‘ ‘, ‘" ‘, ‘‘) . ‘\diff"‘endifelselet cmd = $VIMRUNTIME . ‘\diff‘endifsilent 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 配置,我原生配置