X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=vim%2Fvimrc;h=7b37d2051db16d6cb723ba044ae4a42220a19111;hb=26de249211e1a5a7a283bacfc077cde395b5fca7;hp=567d4ca82b281a191a1d60dd5a925916754058e0;hpb=427eabcb67e49c49d3d1dde25c4e29f03fac45ff;p=dotfiles.git diff --git a/vim/vimrc b/vim/vimrc index 567d4ca..7b37d20 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -149,7 +149,7 @@ nmap = = nnoremap zz nnoremap zz -nnoremap +"nnoremap nnoremap nnoremap nnoremap gt @@ -296,6 +296,10 @@ nnoremap sr :FufRenewCache "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' +" 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 @@ -462,6 +466,16 @@ map ew (easymotion-w) map ee (easymotion-w) map el (easymotion-lineforward) map eh (easymotion-linebackward) + +"map n (easymotion-sn) +"map j (easymotion-j) +"map k (easymotion-k) +"map b (easymotion-b) +"map w (easymotion-w) +"map e (easymotion-w) +"map l (easymotion-lineforward) +"map h (easymotion-linebackward) + "" }}} " vim-latex --------------------------------------------------------------- {{{ "set grepprg=grep\ -nH\ $* @@ -497,7 +511,7 @@ autocmd FileType qf nnoremap q :q | setlocal nowrap | setl autocmd FileType help nnoremap q :q | vertical resize 85; autocmd FileType c,cpp setlocal foldmethod=syntax | \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") | - \ inoremap { {}kA | + \ inoremap { {}kA| \ nnoremap :let word=expand(""):wincmd o:vsp:exec("tag ". word)zzzr:wincmd w autocmd FileType python setlocal foldmethod=indent @@ -507,6 +521,10 @@ autocmd FileType vim setlocal foldmethod=marker | \ setlocal formatoptions-=c formatoptions-=r formatoptions-=o | \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("", "{} \"") +autocmd FileType perl setlocal foldmethod=syntax | + \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") | + \ inoremap { {}kA + autocmd Filetype markdown setlocal textwidth=80 autocmd CmdwinEnter * map q :q @@ -619,7 +637,7 @@ nnoremap \d :call DiffToggle() " }}} "nnoremap @=(foldlevel('.')?'za':"\") -nnoremap @=(foldlevel('.')?'za':"\") +nnoremap @=(foldlevel('.')?'za':"\") "noremap d @=(&diff)?':diffoff':":VCSVimDiff" " https://bitbucket.org/sjl/dotfiles/src/tip/vim/vimrc