Vim Tab Madness. Buffers vs. Tabs
joshldavis.com
joshldavis.com
To anyone who uses buffers over tabs, a la OP, what commands/remaps do you prefer for manipulation of buffers?
An important thing to consider is that windows are an abstraction built on top of buffers and tab pages are an abstraction built on top of windows. Each level adds some flexibility to the user experience but it comes at a price: you get tied to that abstraction level's commands and "worldview" so to speak.
I don't use any buffer-management plugin because buffers are not hard enough to deal with but I do have a few mappings:
nnoremap ,b :buffer <C-z><S-Tab>
nnoremap ,B :sbuffer <C-z><S-Tab>
nnoremap gb :ls<CR>:buffer<Space>
nnoremap gB :ls<CR>:sbuffer<Space>
nnoremap <PageUp> :bprevious<CR>
nnoremap <PageDown> :bnext<CR>