How do I choose from multiple tag matches when a tag has several definitions?
When a tag has multiple definitions (e.
category:
navigation
tags:
#navigation
#ex-commands
How do I open a tag definition in a new split window?
The ] command opens the definition of the tag under the cursor in a new horizontal split.
category:
navigation
tags:
#navigation
#windows
#normal-mode
How do I scroll the screen down by one line without moving the cursor?
The command scrolls the window down one line at a time while keeping the cursor on its current line (until the cursor would go off-screen).
category:
navigation
tags:
#navigation
#scrolling
#normal-mode
How do I scroll the screen up by one line without moving the cursor?
The command scrolls the window up one line at a time while keeping the cursor position fixed.
category:
navigation
tags:
#navigation
#scrolling
#normal-mode
How do I set a minimum number of lines to keep visible above and below the cursor?
The scrolloff option keeps a minimum number of lines visible above and below the cursor when scrolling.
category:
navigation
tags:
#navigation
#scrolling
#config
How do I scroll so the current line is at the bottom of the screen?
The zb command redraws the screen with the current line at the bottom of the window.
category:
navigation
tags:
#navigation
#scrolling
#normal-mode
How do I land on a specific position relative to a search match?
Search offsets let you place the cursor at a specific position relative to the match.
category:
navigation
tags:
#navigation
#search
#normal-mode
How do I jump between sections using [[ and ]] motions?
The ]] and [[ motions jump between sections, traditionally defined as lines starting with { in the first column.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I return to my previous position after jumping to a tag?
The command pops the tag stack and returns to the position from which you last used or :tag.
category:
navigation
tags:
#navigation
#ex-commands
#normal-mode
How do I jump to the exact column position of a mark?
The backtick command ` ` followed by a mark name jumps to the exact line and column of that mark, unlike the single-quote ' which only goes to the line.
category:
navigation
tags:
#navigation
#marks
#normal-mode
How do I use the location list for per-window navigation?
The location list is a per-window alternative to the quickfix list.
category:
navigation
tags:
#navigation
#ex-commands
#buffers
How do I navigate through the quickfix list?
The quickfix list holds a set of file positions, typically from compiler errors, grep results, or other tools.
category:
navigation
tags:
#navigation
#ex-commands
#buffers
How do I set marks that work across files?
Uppercase marks (A-Z) are global marks that remember both the file and the cursor position.
category:
navigation
tags:
#navigation
#marks
#normal-mode
How do I jump between diff hunks in a diff view?
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one.
category:
navigation
tags:
#navigation
#editing
#normal-mode
How do I move by display lines when long lines wrap?
The gj command moves the cursor down by one display line rather than one physical line.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I move the cursor to a specific column on the current line?
The command moves the cursor to a specific screen column on the current line.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I cycle through positions where I made changes?
The g; command moves backward through the change list, jumping to positions where edits were made.
category:
navigation
tags:
#navigation
#marks
#normal-mode
How do I jump to a tag definition using the tag stack?
The command jumps to the definition of the keyword under the cursor using tag files.
category:
navigation
tags:
#navigation
#ex-commands
#normal-mode
How do I jump to the next unmatched opening brace?
The [{ command moves backward to the nearest unmatched {.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I jump to the next unmatched closing parenthesis?
The ]) command moves forward to the next unmatched ).
category:
navigation
tags:
#navigation
#motions
#normal-mode