How do I extend a visual selection to a search match?
v/pattern<CR>
Starting a search while in visual mode extends the selection to the search match.
1019 results for "i" a""
v/pattern<CR>
Starting a search while in visual mode extends the selection to the search match.
<C-v>u{code} in insert mode
In insert mode, u followed by a 4-digit hex code inserts the Unicode character at that code point.
qaq
How it works To clear a macro register, you simply start recording into that register and immediately stop.
{count}<C-a> / {count}<C-x>
While increments and decrements a number by 1, you can prefix either with a count to add or subtract a specific amount.
:'<,'>s/\%Vpattern/replacement/g
Using \%V in a substitute pattern restricts matching to within the visual block area only, rather than the full lines.
:Telescope find_files
Telescope is a highly extensible fuzzy finder for Neovim.
:let @a = @a . @b
You can manipulate register contents directly using the :let command with the @{reg} syntax.
"ap, edit, 0"ay$
When a macro has a small mistake, re-recording the entire thing is tedious.
"ayy ... "ap
Named registers let you store multiple pieces of text independently.
<C-v>selection r{char}
In visual block mode, pressing r followed by a character replaces every character in the selected rectangle with that character.
:tab help
By default, :help opens in a horizontal split, which can feel cramped.
-
vim-vinegar is a lightweight plugin by Tim Pope that enhances Vim's built-in file browser (netrw) with a simpler, more intuitive workflow.
:command Name action
The :command command defines a new user Ex command.
:retab
How it works The :retab command replaces all tab characters in the current buffer with the appropriate number of spaces, based on your current tabstop and expan
<C-w>]
The ] command opens the definition of the tag under the cursor in a new horizontal split.
{count}|
The command moves the cursor to a specific screen column on the current line.
qa...@aq
A recursive macro calls itself at the end of its recording, causing it to repeat until a motion or search fails.
:'a,'b s/old/new/g
Marks can be used as range specifiers in any Ex command.
command-line #marks #command-line #ex-commands #ranges #editing
<C-r>{reg} in command line
While on the : command line, pressing followed by a register name inserts that register's contents.
``
The double backtick jumps to the exact position before the last jump.