Last reviewed
Jumping around in Vim and Neovim
Using jumps along with searching and marks allows very quick moving inside vim.
<ctrl+o> — jump back
<ctrl+i> — jump forward
<ctrl+6> — jump to the buffer you just left
'. — jump to last edited line
{ / } — previous / next paragraph
% — go to matching (), {}, []
The jumplist
The jumplist is the record that <ctrl+o> and <ctrl+i> move through. Each time you make a jump in a file or between files, such as a search or G, Vim adds where you were to the list. Moving with j and k doesn't count.
:jumps — see your current jumplist
This is particularly useful for:
- getting back to where you were after searching, or after using
Gto go to the end of a file - moving between different sections of a large file
- jumping between multiple files in a project
In a terminal <ctrl+i> and <Tab> are normally the same key, so remapping <Tab> can also change <ctrl+i>.
see marks here If you want to jump straight between the files in your jumplist, the bufjump.nvim plugin adds that to Neovim.

