View and choose a buffer

1 Point

Alex Alex

6 months ago

Stupidly simple and nice mapping. Works best when you have less than ~20 buffers open.

nnoremap gb :ls<CR>:b

Enan Ajmain

Enan Ajmain 6 months ago

You should put a <Space> after b. 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.

Romain Lafourcade

Romain Lafourcade 6 months ago

Already submitted: https://vimrcfu.com/snippet/5

Alex

Alex 6 months ago

well, there's no way to remove a post.