]> oss.titaniummirror.com Git - smckown/dotfiles.git/blobdiff - vim/vimrc
vim: add change option toggle for Git Gutter (cog)
[smckown/dotfiles.git] / vim / vimrc
index 0468be2af20cd1e2bac084f1e127e0fb93605221..f5e903ddb18027e663c4cfe90cf869127b97b6e6 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -355,6 +355,9 @@ nnoremap cop :DelimitMateSwitch<CR>
 " Rainbow Parenthesis -- off by default but set toggle
 nnoremap co( :RainbowParenthesesToggle<CR>
 
+" Toggle git gutter
+nnoremap cog :GitGutterToggle<CR>
+
 " mkbuild tools
 nnoremap <silent> <leader>e :call mkbuild#DmenuOpen('e')<CR>
 nnoremap <leader>x :<C-u>Unite -buffer-name=xrefs xrefs<cr>
@@ -421,10 +424,8 @@ nnoremap <leader>uy :<C-u>Unite -no-split -buffer-name=yank history/yank<cr>
 nnoremap <leader>ub :<C-u>Unite -no-split -start-insert -buffer-name=buffer buffer<cr>
 nnoremap <leader>uo :<C-u>Unite -no-split -start-insert -buffer-name=outline outline<cr>
 nnoremap <leader>ul :<C-u>Unite -no-split -start-insert -buffer-name=lines line<cr>
-nnoremap <leader>u: :<C-u>Unite -no-split -start-insert -buffer-name=command history/command<cr>
-nnoremap <leader>u/ :<C-u>Unite -no-split -start-insert -buffer-name=search history/search<cr>
-nnoremap q: :<C-u>Unite -start-insert -direction=dynamicbottom -buffer-name=command history/command<cr>
-nnoremap q/ :<C-u>Unite -start-insert -direction=dynamicbottom -buffer-name=search history/search<cr>
+nnoremap <leader>: :<C-u>Unite -start-insert -direction=dynamicbottom -buffer-name=command history/command<cr>
+nnoremap <leader>/ :<C-u>Unite -start-insert -direction=dynamicbottom -buffer-name=search history/search<cr>
 
 " Custom mappings for the unite buffer
 autocmd FileType unite call s:unite_settings()