How do I enable the built-in matchit plugin to make % jump between matching HTML tags and keywords?
:packadd! matchit
Vim's % command jumps between matching brackets by default.
plugins #navigation #plugins #text-objects #matching #normal-mode
287 results for ":jumps"
:packadd! matchit
Vim's % command jumps between matching brackets by default.
plugins #navigation #plugins #text-objects #matching #normal-mode
/\v<(TODO|FIXME|BUG)>
When you triage code, jumping among TODO, FIXME, and BUG markers quickly is often more useful than searching each token separately.
:tags
The :tags command displays the tag stack, showing all the tag jumps you have made with and their return points.
[#
Vim includes built-in motions for navigating C preprocessor conditional blocks: [# jumps backward to the previous unmatched #if or #else, and ]# jumps forward t
]c
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one.
{ and }
The { and } commands move the cursor by paragraph — jumping to the previous or next blank line.
`< and `>
The ` ` marks automatically track the boundaries of the last visual selection.
:<line-number>
When you know the exact line number you want to navigate to, the colon command is the quickest way to get there.
[m
The [m motion jumps backward to the start of the nearest enclosing or preceding method definition.
:set incsearch
The incsearch option enables incremental search, which highlights matches in real time as you type the search pattern.
`0
Vim automatically saves your cursor position when you exit, storing it as the 0 mark in the viminfo file (or shada file in Neovim).
gd
The gd command jumps to the local definition of the word under the cursor.
``
The double backtick jumps to the exact position before the last jump.
m{A-Z}
Uppercase marks (A-Z) are global marks that remember both the file and the cursor position.
gI
Most Vim users know I to insert at the start of a line — but I actually jumps to the first non-blank character, skipping leading whitespace.
:set sidescroll=1
When wrap is off and the cursor moves past the edge of the screen, Vim jumps the view horizontally by a number of columns determined by sidescroll.
g<C-]>
When a symbol (function, class, variable) is defined in multiple places, CTRL-] blindly jumps to the first match.
nnoremap <expr> j v:count == 0 ? 'gj' : 'j'
By default, j and k move by physical lines (newline-delimited), which jumps over the entire visual span of a long wrapped line in a single keystroke.
{count}H and {count}L
Most Vim users know H jumps to the first visible line, M to the middle, and L to the last.
gi
The gi command moves the cursor to the position where you last exited insert mode and immediately enters insert mode again.
navigation #navigation #insert-mode #marks #normal-mode #productivity