How do I jump between matching if/else/endif or other language constructs?
The % command jumps between matching brackets by default, but with the built-in matchit plugin, it extends to match language-specific keywords like if/else/endi
category:
navigation
tags:
#navigation
#plugins
#matching
#code-navigation
How do I scroll the screen so the current line is at the top?
The zt command repositions the viewport so that the line where your cursor sits moves to the top of the screen, without changing your cursor position within the
category:
navigation
tags:
#navigation
#scrolling
#normal-mode
#viewport
#productivity
How do I repeat the last f, t, F, or T character search on a line?
After using f, t, F, or T to jump to a character on the current line, pressing ; repeats the same search in the same direction, and , repeats it in the opposite
category:
navigation
tags:
#navigation
#motions
#normal-mode
#editing
#productivity
How do I jump back to where I last inserted text and continue typing?
The gi command moves the cursor to the position where you last exited insert mode and immediately enters insert mode again.
category:
navigation
tags:
#navigation
#insert-mode
#marks
#normal-mode
#productivity
How do I jump back to where I last made an edit?
The g; and g, commands let you navigate Vim's changelist — a per-buffer history of every position where you made a change.
category:
navigation
tags:
#navigation
#changelist
#editing
#normal-mode
#marks
How do I quickly jump between function or method definitions in code?
The ]] and [[ commands let you jump forward and backward between section boundaries, which in most programming languages correspond to function or method defini
category:
navigation
tags:
#navigation
#motions
#normal-mode
#code
#functions
How do I open a file path that appears in my code without manually typing it?
The gf command ("go to file") opens the file whose path is under the cursor.
category:
navigation
tags:
#navigation
#normal-mode
#buffers
#productivity
#file-management
How do I navigate compiler errors, grep results, or search matches using the quickfix list?
The quickfix list is Vim's built-in mechanism for navigating a list of file locations — compiler errors, grep results, search matches, or any structured outpu
category:
navigation
tags:
#navigation
#quickfix
#ex-commands
#productivity
#workflow
How do I set a mark that works across different files?
Uppercase marks (A-Z) are global marks — they remember not only the line and column position, but also the file where they were set.
category:
navigation
tags:
#navigation
#marks
#normal-mode
#buffers
#productivity
How do I jump to a specific percentage position in a file?
The {N}% command jumps the cursor to the line that is N percent of the way through the file.
category:
navigation
tags:
#navigation
#motions
#normal-mode
#productivity
What is the difference between backtick and single quote when jumping to marks?
Vim offers two ways to jump to a mark, and the difference is crucial: the backtick (` `) jumps to the exact line and column where the mark was set, while the si
category:
navigation
tags:
#navigation
#marks
#motions
#normal-mode
How do I set a mark and jump back to it later?
The ma command sets a mark named a at the current cursor position.
category:
navigation
tags:
#navigation
#marks
#normal-mode
How do I scroll down half a page in Vim?
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I scroll up half a page in Vim?
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I move the cursor to the end of a line?
The $ command moves the cursor to the last character of the current line.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I move to the first non-blank character of a line?
The ^ command moves the cursor to the first non-blank character of the current line.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I jump to the local definition of a variable in Vim?
The gd command jumps to the local definition of the word under the cursor.
category:
navigation
tags:
#navigation
#motions
#normal-mode
#search
How do I jump to the end of a word in Vim?
The e command moves the cursor to the last character of the current word.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I jump to the position of my last edit?
The ` .
category:
navigation
tags:
#navigation
#marks
#normal-mode
#editing
How do I jump to the beginning of the next word?
The w command moves the cursor forward to the beginning of the next word.
category:
navigation
tags:
#navigation
#motions
#normal-mode