How do I fuzzy-search and switch between open buffers in Vim?
:Buffers
The fzf.
795 results for "G"
:Buffers
The fzf.
<C-v>jjr<C-k>12
Visual block mode combined with the replace command and digraph input lets you replace a column of characters with special Unicode characters.
<C-v>jjI\=printf('%02d ', line('.')-line("'<")+1)<CR><Esc>
By combining visual block insert with Vim's expression register, you can insert dynamically computed line numbers at the start of each selected line.
visual-mode #visual-mode #block-mode #line-numbers #expression-register
:Vexplore
Vim ships with netrw, a built-in file explorer that requires no plugins.
:%s/^/\=line('.').' '/
Vim's substitute command supports expressions in the replacement string using \=.
<Leader>tm
The vim-table-mode plugin by Dhruva Sagar turns Vim into a powerful table editor that automatically formats and aligns table columns as you type.
@a (within macro @b)
Vim macros can call other macros, enabling modular macro composition.
P
The P (uppercase) command pastes the contents of the default register before the cursor position.
:%norm A;
The :%norm command runs normal mode commands on every line in the file (or a range).
<C-k>{two-chars}
Vim's digraph system lets you type hundreds of special characters — arrows, fractions, accented letters, currency symbols, and more — using intuitive two-ch
:set {option}&
Append & to any :set command to reset that option to its compiled-in default value — the value Vim shipped with before any vimrc or plugin changed it.
\u and \l in :s replacement
Vim's substitute command supports special case modifiers in the replacement string that let you change the case of captured text on the fly.
{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.
:argdo %s/foo/bar/ge | update
Bulk replacements across many files are risky when every buffer gets written unconditionally.
:
In Visual mode, typing : does more than open the command line: Vim automatically inserts the exact selection range as '.
qa...@aq
A recursive macro calls itself at the end of its recording, causing it to repeat until a motion or search fails.
''
When you jump around a file, Vim tracks prior locations.
navigation #navigation #motions #marks #jumplist #normal-mode
:pop or <C-t>
When you jump to a tag definition with , Vim pushes your location onto a tag stack.
gUip
gUip is a compact operator-plus-text-object pattern that uppercases exactly the paragraph your cursor is in.
:keepjumps normal! gg
Sometimes you need to make a quick structural move (for example, jump to top, inspect context, then return) without polluting jump navigation history.