From d611677c077d8f7b3cda3d18f0d42eae1e61518d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 14 Jul 2015 16:01:51 -0400 Subject: vimrc: Add 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 bb mapping. --- vimrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vimrc') 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 bb mapping to pick a buffer to open in the current window " @@ -467,6 +468,7 @@ 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 bb :call PickCommand(PickBufferListCommand(), "", ":edit") nnoremap bs :call PickCommand(PickBufferListCommand(), "", ":split") nnoremap bv :call PickCommand(PickBufferListCommand(), "", ":vsplit") nnoremap bt :call PickCommand(PickBufferListCommand(), "", ":tabedit") -- cgit v1.2.3