How do I jump to the beginning of the previous word?
b
The b command moves the cursor backward to the beginning of the previous word.
870 results for "it at"
b
The b command moves the cursor backward to the beginning of the previous word.
gw
The gw operator reformats text to fit within textwidth, just like gq — but with one key difference: gw leaves the cursor in its original position after format
set wildcharm=<Tab>
By default, pressing in a : mapping inserts a literal tab character rather than triggering wildmenu completion.
zx
The zx command resets and recomputes all folds in the current window based on the current foldmethod.
:put ={expr}
The :put ={expr} command evaluates a Vimscript expression and inserts the result as a new line below the cursor.
:let g:netrw_liststyle = 3
By default, netrw shows files in a flat listing.
plugins #netrw #file-browser #plugins #configuration #built-in
:g/./norm @q
Combining the :global command with :normal lets you run a macro on every non-blank line in one shot.
:'<,'>norm @a
Combining :normal with a visual range lets you replay a macro on each line of a selection individually — far more targeted than recursive macros or @@ repeati
:set exrc secure
Adding set exrc to your vimrc tells Vim to read a .
]c and [c
When files are open in Vim's built-in diff mode — whether via vimdiff, :diffsplit, or :diffthis — the ]c and [c motions let you jump precisely between chang
e
The e command moves the cursor to the last character of the current word.
:g/pattern/t$
How it works The :g (global) command combined with :t (copy) lets you duplicate all lines matching a pattern to a specific location.
]m / [m / ]M / [M
When navigating large source files, ]m and [m let you jump directly to the start of the next or previous method.
<C-r>{register}
Pressing followed by a register name in insert mode inserts the contents of that register at the cursor position without leaving insert mode.
qaq qa...@aq @a
A recursive macro calls itself at the end of its recording, causing it to repeat indefinitely until a command inside it fails (like a search hitting the end of
:resize +N / :resize -N
:resize adjusts the height of the current window by a relative or absolute amount.
<C-v>{motion}$A
In visual block mode, pressing $ makes the right edge of the selection "ragged" — it extends to the real end of each line regardless of length.
:let @q = 'commands'
Macros in Vim are just text stored in named registers.
"1p
Vim automatically stores your deletion history in numbered registers "1 through "9.
gR
gR enters Virtual Replace mode, a smarter variant of Replace mode (R) that replaces characters based on screen columns rather than raw bytes.