X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=vim%2Fvimrc;h=fc97f823fa763d2603ed56d5c92bb8571f554072;hb=fa4719922ca4877858157963f406303ce5feda10;hp=12c7833afd2383b6175c4deed2e0f6ab2d139da8;hpb=3f6be1036862ef97dd2ddb4ba4e1bc40803e51ec;p=dotfiles.git diff --git a/vim/vimrc b/vim/vimrc index 12c7833..fc97f82 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -13,7 +13,8 @@ Bundle 'vim-scripts/FuzzyFinder' Bundle 'vim-scripts/L9' Bundle 'Valloric/YouCompleteMe' Bundle 'octol/vim-cpp-enhanced-highlight' -Bundle 'bling/vim-airline' +Bundle 'vim-airline/vim-airline' +Bundle 'vim-airline/vim-airline-themes' Bundle 'payneseu/nerdtree' Bundle 'Townk/vim-autoclose' Bundle 'majutsushi/tagbar' @@ -92,7 +93,7 @@ if has("gui_running") set macmeta "" Macvim only colorscheme molokai set guioptions+=c - set guifont=Sauce\ Code\ Powerline\ Light:h11 + set guifont=Source\ Code\ Pro\ Light:h11 highlight Cursor guifg=white guibg=green set guicursor=a:blinkon0 set guioptions=eac @@ -166,12 +167,13 @@ nnoremap  :tabprevious "nmap :b# "nmap d :bd "" keymappig for register operations -nnoremap r :registers +""TODO check if this already mapping +"nnoremap r :registers "noremap x : nnoremap a : nmap p "*p - +" also works :r !pbpaste nmap :resize:vertical resize nmap = :resize:vertical resize @@ -295,7 +297,11 @@ nnoremap sr :FufRenewCache "syntax on, must before the YCM, "let g:ycm_collect_identifiers_from_tags_files = 1 -"let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' +let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' +" this is fix youcompleteme python error +"http://www.cnblogs.com/clivelee/p/4266559.html +"https://github.com/Valloric/YouCompleteMe/issues/18 +let g:ycm_path_to_python_interpreter= '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python' let g:ycm_auto_trigger = 1 let g:ycm_seed_identifiers_with_syntax = 1 let g:ycm_show_diagnostics_ui = 0 @@ -370,6 +376,8 @@ endfunction "endif " }}} " NerdTree ---------------------------------------------------------------- {{{ +" Fix keymapping conflict +nmap , MarkClear nmap n :NERDTreeToggle nmap N :NERDTreeFind " }}} @@ -509,7 +517,8 @@ autocmd FileType c,cpp setlocal foldmethod=syntax | \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") | \ inoremap { {}kA| \ nnoremap :let word=expand(""):wincmd o:vsp:exec("tag ". word)zzzr:wincmd w -autocmd FileType python setlocal foldmethod=indent +autocmd FileType python setlocal foldmethod=indent | + \ set list autocmd FileType xml setlocal foldmethod=syntax | \ let g:xml_syntax_folding=1 @@ -519,7 +528,7 @@ autocmd FileType vim setlocal foldmethod=marker | autocmd FileType perl setlocal foldmethod=syntax | \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") | - \ inoremap { {}kA + \ inoremap { {}kA autocmd Filetype markdown setlocal textwidth=80 @@ -688,3 +697,5 @@ nnoremap m :marks abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ< " \ 'undo', 'line', 'changes', 'mixed', 'bookmarkdir'] +"" TODO: +""