How do I jump to a percentage position in a file?
{count}%
When used with a count, the % command jumps to the line at that percentage of 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.
gF
The gF command opens the file under the cursor and jumps to the line number that appears after the filename.
M
The M command moves the cursor to the line in the middle of the current window.
L
The L command moves the cursor to the last line visible in the current window.
}
The } motion moves the cursor forward to the next blank line, effectively jumping to the next paragraph.
)
The ) motion moves the cursor to the beginning of the next sentence.
:<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{a-z} then '{a-z}
Vim marks let you bookmark positions in a file and jump back to them instantly.
{
The { motion moves the cursor backward to the previous blank line, jumping to the beginning of the current or previous paragraph.
ge
The ge motion moves the cursor backward to the end of the previous word.
<C-o> and <C-i>
Vim maintains a jump list of positions you have visited.
F{char}
The F command moves the cursor backward to the previous occurrence of a specified character on the current line.
let g:netrw_liststyle=3 and let g:netrw_banner=0
How it works Vim ships with a built-in file explorer called netrw that you can access with :Explore (or :Ex).
:set splitbelow splitright
How it works By default, Vim opens horizontal splits (:split or :sp) above the current window and vertical splits (:vsplit or :vsp) to the left.
:set showmatch
How it works The :set showmatch option makes Vim briefly jump the cursor to the matching opening bracket when you type a closing bracket.
:set mouse=a
How it works The :set mouse=a command enables mouse support in all Vim modes.
:set wrap! or :set nowrap
How it works By default, Vim wraps long lines that extend past the window width, displaying them across multiple screen lines.
[I
How it works The [I command searches the current file (and included files) for the word under the cursor and displays a list of all matching lines with their li
]s and [s
How it works When spell checking is enabled in Vim with :set spell, misspelled words are highlighted.