diff options
author | Teddy Wing | 2015-07-13 21:07:10 -0400 |
---|---|---|
committer | Teddy Wing | 2015-07-13 21:07:10 -0400 |
commit | 43aba19c0a4b2e520d7806335da5e2a4116b294b (patch) | |
tree | d61741b3c5a000dadb41e02b143bf63bf1a1de98 /vimrc | |
parent | 8e3a6bceb290b1e008484c8c777fdcc092a5de02 (diff) | |
download | dotvim-43aba19c0a4b2e520d7806335da5e2a4116b294b.tar.bz2 |
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.
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 +" <leader>d. " @@ -456,14 +458,14 @@ function! PickBufferListCommand() return 'echo "' . join(buffers, "\n") . '"' endfunction -nnoremap <leader>xd :call PickCommand(g:pick_command, "", ":edit")<cr> -nnoremap <leader>xs :call PickCommand(g:pick_command, "", ":split")<cr> -nnoremap <leader>xv :call PickCommand(g:pick_command, "", ":vsplit")<cr> -nnoremap <leader>xt :call PickCommand(g:pick_command, "", ":tabedit")<cr> -nnoremap <leader>xbs :call PickCommand(PickBufferListCommand(), "", ":split")<cr> -nnoremap <leader>xbv :call PickCommand(PickBufferListCommand(), "", ":vsplit")<cr> -nnoremap <leader>xbt :call PickCommand(PickBufferListCommand(), "", ":tabedit")<cr> -nnoremap <leader>x] :call PickTag()<cr> +nnoremap <leader>dd :call PickCommand(g:pick_command, "", ":edit")<cr> +nnoremap <leader>ds :call PickCommand(g:pick_command, "", ":split")<cr> +nnoremap <leader>dv :call PickCommand(g:pick_command, "", ":vsplit")<cr> +nnoremap <leader>dt :call PickCommand(g:pick_command, "", ":tabedit")<cr> +nnoremap <leader>bs :call PickCommand(PickBufferListCommand(), "", ":split")<cr> +nnoremap <leader>bv :call PickCommand(PickBufferListCommand(), "", ":vsplit")<cr> +nnoremap <leader>bt :call PickCommand(PickBufferListCommand(), "", ":tabedit")<cr> +nnoremap <leader>d] :call PickTag()<cr> " PreserveNoEOL |