How do I set up efficient keybindings for cycling through buffers?
Mapping ]b and [b to :bnext and :bprev creates an intuitive bracket-style navigation for buffers, matching the convention used by unimpaired.
category:
buffers-windows
tags:
#buffers-windows
#navigation
#mapping
#buffers
How do I switch to the next buffer in Vim?
The :bnext (or :bn for short) command switches to the next buffer in Vim's buffer list.
category:
buffers-windows
tags:
#buffers
#ex-commands
#navigation
How do I hide a buffer from the buffer list without closing it?
Setting nobuflisted removes a buffer from the :ls output and buffer-switching commands like :bnext/:bprev, while keeping it loaded and accessible.
category:
buffers-windows
tags:
#buffers-windows
#buffers
#unlisted
#management
How do I switch to the previous buffer in Vim?
The :bprev (or :bp for short) command switches to the previous buffer in Vim's buffer list.
category:
buffers-windows
tags:
#buffers
#ex-commands
#navigation
How do you cycle between next and previous buffers?
Use :bn (bnext) to go to the next buffer and :bp (bprevious) to go to the previous one.
category:
buffers-windows
tags:
#buffers
#cycle
#next-previous
How do I prevent a window from switching to a different buffer in Neovim?
Neovim's winfixbuf option (added in Neovim 0.
category:
buffers-windows
tags:
#neovim
#buffers
#windows
#config
How to navigate between buffers, quickfix entries, and location list items using bracket pairs with vim-unimpaired?
The vim-unimpaired plugin by Tim Pope adds symmetric [ and ] bracket mappings for navigating common Vim lists.
category:
plugins
tags:
#navigation
#buffers
#quickfix
#plugins
#normal-mode
How do I use bracket mappings for paired operations?
[q, ]q, [b, ]b (vim-unimpaired)
vim-unimpaired by Tim Pope provides consistent bracket mappings for navigating paired items like quickfix entries, buffers, and more.
category:
plugins
tags:
#plugins
#navigation
How do I create a custom key mapping?
The :nnoremap command creates a non-recursive normal mode mapping.
category:
config
tags:
#config
#ex-commands
How do I switch between buffers without being forced to save first?
By default, Vim refuses to let you switch away from a buffer that has unsaved changes, forcing you to save or discard with :w or :e! before moving on.
category:
config
tags:
#config
#buffers
#vimrc
#productivity
#workflow
How do I fuzzy-search and switch between open buffers in Vim?
The fzf.
category:
plugins
tags:
#plugins
#fzf
#buffers
#navigation
#workflow
How do I quickly navigate quickfix entries, buffers, and toggle options with bracket keys?
The vim-unimpaired plugin by Tim Pope provides pairs of bracket mappings for common navigation and toggling tasks.
category:
plugins
tags:
#plugins
#navigation
#buffers
#quickfix
How do I close the current buffer in Vim?
How it works The :bdelete command (often abbreviated :bd) removes the current buffer from Vim's buffer list and closes it.
category:
buffers-windows
tags:
#buffers
#navigation
#ex-commands
How do I edit another file without changing the alternate-file (#) reference?
:keepalt edit path/to/file\<CR>
Experienced Vim workflows often depend on the alternate file (#) for fast toggling with , quick diffs, or two-file review loops.
category:
buffers-windows
tags:
#buffers
#windows
#command-line
#navigation
How do I add blank lines above or below the current line using vim-unimpaired?
vim-unimpaired (by Tim Pope) provides paired bracket mappings for dozens of common operations.
category:
plugins
tags:
#editing
#normal-mode
How do I switch to a specific buffer by its number in Vim?
How it works Every buffer in Vim is assigned a unique number when it is opened.
category:
buffers-windows
tags:
#buffers
#navigation
#ex-commands
How do I navigate quickfix entries, buffers, and conflicts with consistent bracket mappings?
The vim-unimpaired plugin (by Tim Pope) provides a consistent [x / ]x mnemonic for navigating any list-like structure in Vim.
category:
plugins
tags:
#navigation
#buffers
#macros
#ex-commands
How do I list all open buffers in Vim?
The :ls command displays a list of all open buffers in Vim, showing their buffer number, status indicators, file name, and the line the cursor was last on.
category:
buffers-windows
tags:
#buffers
#ex-commands
#navigation
How do I repeat the last Ex command I ran?
The @: command re-executes the most recently run Ex command (any command starting with :).
category:
command-line
tags:
#command-line
#ex-commands
#repeat
#normal-mode
#productivity
How do I use the leader key to create my own keyboard shortcuts?
let mapleader = ' ' then nnoremap <leader>key command
The leader key is a configurable prefix for your custom key mappings.
category:
config
tags:
#config
#mappings
#vimrc
#leader
#workflow