]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
vim: update bindings for command and search history
authorR. Steve McKown <rsmckown@gmail.com>
Sun, 17 Jan 2016 19:12:00 +0000 (12:12 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sun, 17 Jan 2016 19:12:00 +0000 (12:12 -0700)
Shorten command history search via Unite! to <Leader>:, similar to the
normal command buffer access via q:.  Similarly, <Leader>/ to search
search history via Unite!.  Don't override the vim standard mappings of
q: and q/.

vim/vimrc

index 0468be2af20cd1e2bac084f1e127e0fb93605221..08268965c1fcae0b7ea28fe28fc8fe59d659efba 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -421,10 +421,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()