我的vimrc
" autocomplete set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Bundle 'Valloric/YouCompleteMe' call vundle#end() filetype plugin indent on let g:ycm_error_symbol = 'ER' let g:ycm_warning_symbol = 'WA' let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py' autocmd CursorMovedI * if pumvisible() == 0|pclose|endif autocmd InsertLeave * if pumvisible() == 0|pclose|endif nmap <C-F11> :YcmDiags<CR> " competition set nu ru mouse=a sw=4 ts=4 sts=4 nobk autoindent incsearch hlsearch t_Co=256 set cindent syntax on " colorscheme koehler colorscheme molokai " 考场就用 koehler map <F2> : w <CR> map <F3> : !./%< <CR> map <F4> : !./%< < ./in > ./out <CR> map <F5> : !g++ % -o %< -Wall -lm <CR> map <C-F5> : !g++ % -o %< -O2 -Wall -lm <CR> map <F6> : !g++ % -o %< -g -Wall -lm <CR> map <C-F6> : !python3 % <CR> map <F7> : !gdb %< <CR> map <C-F9> : vs ./in <CR> map <C-F10> : vs ./out <CR> map <C-F7> : !astyle --style=java -p -H < % > hh.cpp <CR> " Fold function! CFoldText() let sub = substitute(getline(v:foldstart), '\s*\(.*\){.*', '\1', 'g') return sub . ' (' . (v:foldend - v:foldstart + 1) . ' lines)' endfunction set foldmethod=syntax set foldtext=CFoldText() set fillchars-=fold:- set foldlevel=99 nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zC' : 'zO') <CR>
入教第一天0.0
molokai主题下载:https://files.cnblogs.com/files/iwtwiioi/molokai.zip(自觉改后缀为vim)复制到/usr/share/vim/vim74/colors
博客地址:www.cnblogs.com/iwtwiioi 本文为博主原创文章,未经博主允许不得转载。一经发现,必将追究法律责任。