Vim 文件配置

匿名 (未验证) 提交于 2019-12-03 00:39:02
cat ~/.vimrc syntax on set nu set encoding=utf-8 set ts=4 set fileencodings=ucs-bom,utf-8,cp936 set fileencoding=gb2312 set termencoding=utf-8  """""""""""""""""""""" "Quickly Run """""""""""""""""""""" map <F5> :call CompileRunGcc()<CR> func! CompileRunGcc()         exec "w"         if &filetype == ‘c‘                 exec "!g++ % -o %<"                 exec "!time ./%<"         elseif &filetype == ‘cpp‘                 exec "!g++ % -o %<"                 exec "!time ./%<"         elseif &filetype == ‘java‘                 exec "!javac %"                 exec "!time java %<"         elseif &filetype == ‘sh‘                 :!time bash %         elseif &filetype == ‘python‘                 exec "!time python2.7 %"         elseif &filetype == ‘html‘                 exec "!firefox % &"         elseif &filetype == ‘go‘                 " exec "!go build %<"                 exec "!time go run %"         elseif &filetype == mkd                 exec "!~/.vim/markdown.pl % > %.html &"                 exec "!firefox %.html &"         endif endfunc """""""""""syntastic"""""""""""""""" execute pathogen#infect() set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%*  let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0

 

原文:https://www.cnblogs.com/Spider-spiders/p/9254633.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!