aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-07-14 16:01:51 -0400
committerTeddy Wing2015-07-14 16:01:51 -0400
commitd611677c077d8f7b3cda3d18f0d42eae1e61518d (patch)
treecb4741e6f2e98fccf2ff4a3b2baaae78d64737b6
parent3171a3a06e0b44770d7e37b97e582ab96a200757 (diff)
downloaddotvim-d611677c077d8f7b3cda3d18f0d42eae1e61518d.tar.bz2
vimrc: Add <leader>bb mapping
Added a bunch of mappings in 061f2a2298c2c8419d9cab61749d9db3758f8690 to open buffers in all manner of ways but forgot the simplest one: open in the current window. Do that here with a <leader>bb mapping.
-rw-r--r--vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 53f048e..1c5c1f8 100644
--- a/vimrc
+++ b/vimrc
@@ -316,6 +316,7 @@
"
" 2015.07.14:
" * Turn on splitright
+" * Add <leader>bb mapping to pick a buffer to open in the current window
"
@@ -467,6 +468,7 @@ 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>bb :call PickCommand(PickBufferListCommand(), "", ":edit")<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>