How do I navigate quickfix and location list entries with intuitive bracket mappings?
The vim-unimpaired plugin by Tim Pope provides bracket-pair mappings for navigating quickfix and location list entries: [q moves to the previous entry and ]q mo
category:
plugins
tags:
#plugins
#navigation
#quickfix
How do I open a file for reference in a dedicated preview window without disturbing my split layout?
Vim has a built-in preview window — a special window distinct from regular splits.
category:
buffers-windows
tags:
#buffers
#windows
#navigation
#ex-commands
How do I open a file and automatically jump to the first line matching a pattern?
The +{cmd} flag on :edit (and most file-opening commands) runs an Ex command immediately after the file loads.
category:
command-line
tags:
#command-line
#ex-commands
#navigation
#search
#buffers
How do I restrict a Vim search to match only within a specific range of line numbers?
Vim's \%>{lnum}l and \%5l — matches only at positions after line 5 (i.
category:
search
tags:
#search
#regex
#navigation
#ex-commands
How do I search for and highlight text that exceeds a specific column width like 80 or 120?
The pattern /\%>80v.
category:
search
tags:
#search
#navigation
#normal-mode
How do I open any file in a project by partial name without a fuzzy-finder plugin?
By adding to Vim's path option, you enable recursive directory search — which makes :find with tab completion a lightweight project-wide fuzzy finder, no plug
category:
navigation
tags:
#navigation
#ex-commands
#config
#buffers
How do I peek at a function definition without leaving my current window?
:ptag {identifier} opens a small preview window showing the definition of the given tag, while keeping your cursor in the original window.
category:
navigation
tags:
#navigation
#tags
#windows
How do I set a bookmark that persists across different files and Vim sessions?
Vim has two tiers of marks.
category:
navigation
tags:
#marks
#navigation
#normal-mode
How do I make % jump between HTML tags and block-level keywords like if/end?
The matchit plugin ships with Vim and Neovim but is not enabled by default.
category:
plugins
tags:
#navigation
#plugins
#text-objects
#editing
How do I move the cursor to the other corner of a visual block selection?
In visual-block mode (), pressing o moves the cursor to the diagonally opposite corner of the selection, and O moves it to the other end of the same row (flippi
category:
visual-mode
tags:
#visual-mode
#visual-block
#navigation
#editing
How do I scroll the view left and right when lines are wider than the screen?
When nowrap is set and lines extend beyond the screen width, Vim provides dedicated horizontal scroll commands.
category:
navigation
tags:
#navigation
#normal-mode
#buffers-windows
How do I open a specific buffer in a new split without navigating away from my current buffer?
:sbuffer {N} opens buffer number N in a new horizontal split, leaving your current window untouched.
category:
buffers-windows
tags:
#buffers-windows
#buffers
#windows
#navigation
How do I jump to a mark without adding my current position to the jumplist?
Vim's standard mark-jump commands ('a, ` a `) always add the current position to the jumplist before leaping to the mark.
category:
navigation
tags:
#navigation
#marks
#normal-mode
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 open the alternate file in a new split window without typing its name?
Press (Ctrl+W followed by Ctrl+6) to open the alternate file in a horizontal split.
category:
buffers-windows
tags:
#buffers-windows
#navigation
#buffers
How do I edit a file without overwriting the alternate buffer?
Every time you open a file with :edit, Vim updates the alternate file register (#) to the previous buffer.
category:
buffers-windows
tags:
#buffers
#ex-commands
#registers
#navigation
How do I jump to the start of the previous method or function in code?
The [m motion jumps backward to the start of the nearest enclosing or preceding method definition.
category:
navigation
tags:
#navigation
#motions
#code
#normal-mode
How do I browse the full commit history of the current file using vim-fugitive?
vim-fugitive's :G log -- % loads the git commit history for the current file into a quickfix-style log buffer.
category:
plugins
tags:
#plugins
#buffers
#navigation
#ex-commands
How do I choose between multiple tag definitions when jumping to a symbol in Vim?
When a symbol (function, class, variable) is defined in multiple places, CTRL-] blindly jumps to the first match.
category:
navigation
tags:
#navigation
#tags
#normal-mode
How do I quickly jump between function definitions or top-level blocks in a source file?
The [[ and ]] commands navigate between top-level code blocks — specifically, lines where { appears in column 1.
category:
navigation
tags:
#navigation
#motions
#normal-mode