How do I view the list of positions I have jumped to in Vim?
:jumps
How it works Vim keeps a jump list that records your cursor position every time you make a jump.
287 results for ":jumps"
:jumps
How it works Vim keeps a jump list that records your cursor position every time you make a jump.
:set jumpoptions=stack,view
By default, jump navigation can feel lossy in long files: you jump back, but folds, topline, and viewport context do not always match what you were looking at b
:set switchbuf=useopen,usetab,newtab
When jump commands open files (:tag, quickfix navigation, location list jumps), Vim may split your layout in ways that break flow.
]] and [[
The ]] and [[ motions jump between sections, traditionally defined as lines starting with { in the first column.
:set switchbuf+=uselast
When jumps open the target buffer in an unexpected split, context switching gets expensive.
:packadd matchit<CR>
The default % motion is great for simple delimiters, but many code structures use semantic pairs like if/else/endif, try/catch, or HTML tags.
:cdo keepjumps keeppatterns %s/\<OldSymbol\>/NewSymbol/ge | update
When you run :cdo over a large quickfix list, Vim can leave your jump list noisy and your last search pattern overwritten.
command-line #quickfix #ex-commands #search #editing #refactoring
50%
Prefixing the % command with a count jumps the cursor to that percentage through the file.
{count}%
When used with a count, the % command jumps to the line at that percentage of the file.
]m
The ]m command jumps to the start of the next method in Java-style code.
{N}%
The {N}% command jumps the cursor to the line that is N percent of the way through the file.
`a vs 'a
Vim has two ways to jump to marks: backtick (` `) jumps to the exact line AND column, while apostrophe (') jumps to the line only, positioning the cursor at the
:clearjumps
The :clearjumps command wipes the jump list for the current window, giving you a clean slate for and navigation.
`{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.
{
The { motion moves the cursor backward to the previous blank line, jumping to the beginning of the current or previous paragraph.
]] / [[
The ]] and [[ commands let you jump forward and backward between section boundaries, which in most programming languages correspond to function or method defini
navigation #navigation #motions #normal-mode #code #functions
f{char} ; ,
The f, F, t, and T motions search for a character on the current line.
`[ and `]
The ` [ ` and ] ` marks automatically track the boundaries of the last changed or yanked text.
]'
The ]' command jumps to the start of the line containing the next lowercase mark in the file, while [' jumps to the previous one.
]m and [m
The ]m and [m motions let you jump forward and backward between the start of method or function definitions.