LazyVim/Keyshort/Buffer
- Keyshort LazyVim LazyVim/Keyshort
- List Open vim/Buffers - 1. open buffers with snacks leader, 2. open buffers with shorter chord, 3. all buffers, even unlisted ones Card
- Shortcut to open buffers in a nvim/Plugin/snacks.nvim/Picker:
- 1. Open buffers with snacks
find leader: <leader>fb - 2. Open buffers with short chord:
<leader>,- Mnemonic
- I don't really think this is going to need a mnemonic, as it's likely to be very frequently used, and it's so helpful and easy to type
- 3. All buffers, even unlisted ones:
<leader>fB- Mnemonic
- this one is a big counterintuitive for me, since shift usually narrows the scope, rather than widens it (e.g. to current directory rather than root directory), but here, I think the way to remember it is that the shift key is the "alternate" that's expected to be not as frequently used and there are definitely fewer use cases for needing vim/Buffer/Unlisted
- Description: Opens the nvim/Plugin/snacks.nvim picker over open buffers.
<leader>, is the same thing on a shorter chord; <leader>fB widens it to all buffers including unlisted ones.
- Jump to a Buffer by Letter Card
- Shortcut:
<leader>bj - Description: Labels every entry in the nvim/Plugin/bufferline.nvim strip with a letter and jumps to whichever one is typed. Constant effort however far away the buffer is, where
<S-h> and <S-l> cost one press per buffer crossed.
- Next and Previous Buffer Card
- Shortcut:
<S-l> next, <S-h> previous - Description: Steps through the buffer list.
S- is Key/Shift, so these are plain H and L — which normally jump to the top and bottom of the screen — rebound to buffer navigation.
- Next and Previous Buffer (bracket form) Card
- Shortcut:
]b next, [b previous - Description: Same movement as
<S-l> / <S-h>, in the [/] bracket-pair family shared with ]d, ]q, ]t.
- Close Current Buffer Card
- Shortcut:
<leader>bd - Description: Deletes the buffer but keeps the window layout.
<leader>bD deletes the buffer and its window; <leader>bo closes every other buffer.
- My Note
- Buffer order and the tab-like strip at the top come from nvim/Plugin/bufferline.nvim;
[B / ]B reorder buffers rather than navigate them. - Those chips look like tabs and are not: they render buffers, so
gt and gT do nothing to them. Those keys move between tabpages, a separate container holding its own window layout — vim/Q/What is a tabpage in vim?.