From 43aba19c0a4b2e520d7806335da5e2a4116b294b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 13 Jul 2015 21:07:10 -0400 Subject: vimrc: Update pick mappings Use our old Command-T mapping but extend it to work in the context of pick, where we need to have separate mappings depending on how we want to open a file or buffer. --- vimrc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index e48313b..73bff45 100644 --- a/vimrc +++ b/vimrc @@ -311,6 +311,8 @@ " * Add mappings to use pick.vim for opening buffers in new splits, " vsplits, and tabs " * Remove Command-T configuration. Switching to pick. +" * Update pick mappings to be more comfortable now that I've freed +" d. " @@ -456,14 +458,14 @@ function! PickBufferListCommand() return 'echo "' . join(buffers, "\n") . '"' endfunction -nnoremap xd :call PickCommand(g:pick_command, "", ":edit") -nnoremap xs :call PickCommand(g:pick_command, "", ":split") -nnoremap xv :call PickCommand(g:pick_command, "", ":vsplit") -nnoremap xt :call PickCommand(g:pick_command, "", ":tabedit") -nnoremap xbs :call PickCommand(PickBufferListCommand(), "", ":split") -nnoremap xbv :call PickCommand(PickBufferListCommand(), "", ":vsplit") -nnoremap xbt :call PickCommand(PickBufferListCommand(), "", ":tabedit") -nnoremap x] :call PickTag() +nnoremap dd :call PickCommand(g:pick_command, "", ":edit") +nnoremap ds :call PickCommand(g:pick_command, "", ":split") +nnoremap dv :call PickCommand(g:pick_command, "", ":vsplit") +nnoremap dt :call PickCommand(g:pick_command, "", ":tabedit") +nnoremap bs :call PickCommand(PickBufferListCommand(), "", ":split") +nnoremap bv :call PickCommand(PickBufferListCommand(), "", ":vsplit") +nnoremap bt :call PickCommand(PickBufferListCommand(), "", ":tabedit") +nnoremap d] :call PickTag() " PreserveNoEOL -- cgit v1.2.3