5 years ago
Stupidly simple and nice mapping. Works best when you have less than ~20 buffers open.
nnoremap gb :ls<CR>:b
Romain Lafourcade 5 years ago
Already submitted: https://vimrcfu.com/snippet/5
Alex 5 years ago
well, there's no way to remove a post.
Enan Ajmain 5 years ago
You should put a
<Space>
afterb
. If you're using:h bufnr()
as the argument, it doesn't need a space to work. But if you're using:h bufname()
as the argument, you need a space.