From: R. Steve McKown Date: Fri, 19 Jun 2015 15:32:06 +0000 (-0600) Subject: vim: add mappings for vim-mkbuild X-Git-Url: https://oss.titaniummirror.com/gitweb?p=smckown%2Fdotfiles.git;a=commitdiff_plain;h=b6d1a3be6917b21ad7f6d9ebeaea2f9a3ff7df09 vim: add mappings for vim-mkbuild Use e to map to mkbuild#DmenuOpen('e'). Remove other conflicting e mappings: * e[x] mappings for various open methods. I generally just use the '-' mapping to netrw. Although open in a new split might be handy, I've never used it so far. * e mapping for EasyMotion. There isn't that much value in * e when w is available. --- diff --git a/vim/vimrc b/vim/vimrc index 15e4b3c..3915460 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -176,12 +176,6 @@ set tags=tags;/ " %% on an ex command line expands to the dir path of the current buffer cnoremap %% getcmdtype() == ':' ? expand('%:h').'/' : '%%' -" Create some edit maps for opening new files -map ew :e %% -map es :sp %% -map ev :vsp %% -map et :tabe %% - " Make and g] work like g, which uses :tjump nnoremap g] g nnoremap g @@ -270,10 +264,10 @@ nmap w (easymotion-bd-w) nmap b (easymotion-bd-w) nmap W (easymotion-bd-W) nmap B (easymotion-bd-W) -nmap e (easymotion-bd-e) -nmap E (easymotion-bd-E) -nmap ge (easymotion-bd-e) -nmap gE (easymotion-bd-E) +"nmap e (easymotion-bd-e) +"nmap E (easymotion-bd-E) +"nmap ge (easymotion-bd-e) +"nmap gE (easymotion-bd-E) nmap j (easymotion-bd-jk) nmap k (easymotion-bd-jk) nmap n (easymotion-bd-n) @@ -355,6 +349,9 @@ nnoremap cop :DelimitMateSwitch " Rainbow Parenthesis -- off by default but set toggle nnoremap co( :RainbowParenthesesToggle +" mkbuild tools +nnoremap e :call mkbuild#DmenuOpen('e') + " Turn on doxygen syntax highlighting for C, C++, C# and IDL files. let g:load_doxygen_syntax=1