X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=vim%2Fvimrc;h=12c7833afd2383b6175c4deed2e0f6ab2d139da8;hb=ed0f4ed4fd3b9c5af7d4c10bd6d5c734ab61b269;hp=e68c9cb60767f6270433cd15ad4b619c3e122a2c;hpb=a3f9febb8a04d66a7af3e0ffee9167e84bf8ba12;p=dotfiles.git diff --git a/vim/vimrc b/vim/vimrc index e68c9cb..12c7833 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -149,7 +149,7 @@ nmap = = nnoremap zz nnoremap zz -nnoremap +"nnoremap nnoremap nnoremap nnoremap gt @@ -459,8 +459,19 @@ map ej (easymotion-j) map ek (easymotion-k) map eb (easymotion-b) 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\ $* @@ -496,7 +507,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 @@ -506,6 +517,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 @@ -618,7 +633,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