How do I search for the word under the cursor?
*
The command searches forward for the exact word under the cursor, jumping to the next occurrence.
2277 results for "@a"
*
The command searches forward for the exact word under the cursor, jumping to the next occurrence.
:%s/\(\w\+\) \(\w\+\)/\2 \1/g
Vim's substitute command supports captured groups (back-references) using \( and \), allowing you to capture parts of a match and rearrange them in the replacem
"1p and .
When you paste from a numbered register with "1p, Vim's dot command (.
"1p
Vim automatically stores your deletion history in numbered registers "1 through "9.
"*
On X11 Linux systems, there are two independent clipboard-like buffers: the primary selection (") and the clipboard ("+).
g- and g+
Vim's undo history is a tree, not a linear stack.
:set winminheight=0
By default, Vim enforces a minimum window height of 1 line, which means you can never fully collapse a split.
buffers-windows #buffers-windows #windows #splits #navigation
"*p vs "+p
How it works Vim has two system clipboard registers that interact with the operating system: " -- the selection register (PRIMARY selection on Linux/X11, clipbo
v, V, or Ctrl-V while in visual mode
How it works Vim has three visual modes, and you can switch between them without losing your current selection: v - Characterwise visual mode (select individual
:command -complete=file -nargs=1 E edit <args>
When defining custom commands with :command, the -complete option adds tab completion for arguments.
command-line #command-line #completion #custom-command #tab-complete
:set list
The :set list command makes invisible characters visible by displaying them as special symbols.
]] / [[
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
:CocInstall coc-tsserver
coc.
]c / [c (gitsigns.nvim)
gitsigns.
: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.
gUU
The gUU command uppercases every character on the current line instantly — no visual selection or motion required.
:packadd! cfilter
If you share a Vim config across machines, optional plugins can cause noisy startup behavior when a package is missing.
<Leader><Leader>w
The vim-easymotion plugin replaces Vim's default motion commands with a visual overlay system that lets you jump to any visible position on screen in just two o
g~ap
g~ap is a fast way to invert letter case across a full paragraph without entering Visual mode.
editing #editing #operators #text-objects #case #normal-mode
:earlier
Vim's undo history is not just a linear list of changes — it records timestamps too.