How do I fuzzy search inside file contents across a project in Vim?
:Rg
The fzf.
2277 results for "@a"
:Rg
The fzf.
"1pu.u.u.
Vim stores the last 9 deletions in numbered registers 1-9, with the most recent in register 1.
:set fileformat=unix
When you open a Windows file in Vim on a Unix system, you may see ^M at the end of every line — that's the carriage return (\r) from CRLF line endings.
d2iw
Text objects in Vim accept a count, letting you operate on a span of multiple adjacent text objects in one command.
`"
The " mark is an automatic mark Vim sets whenever you leave a buffer — switching to another file, hiding the buffer, or quitting Vim (with viminfo/shada enabl
<C-x>s
When spell checking is enabled (:set spell), s in insert mode opens a popup menu of suggested corrections for the most recently flagged misspelled word — with
:history :
When you work with long substitution pipelines or multi-part Ex commands, digging through all history (:history) adds noise.
:Subvert
The vim-abolish plugin's :Subvert command (abbreviated :S) substitutes a word across all its case variants simultaneously.
:vimgrep /pattern/j **/*<CR>:copen<CR>
When you need a project-wide search but do not want to leave Vim, :vimgrep gives you a built-in grep workflow with navigation, filtering, and batch editing thro
search #search #quickfix #vimgrep #project-workflow #command-line
:t
The :t command (short for :copy) copies addressed lines to a destination line number, leaving the unnamed register untouched.
:set define=^\\s*def
Vim's [d, ]d, [D, and ]D commands search for the "definition" of the keyword under the cursor.
set winbar=%f
Neovim 0.
qqq qq{commands}@qq @q
A recursive macro calls itself at the end of its recording, causing it to repeat automatically until a motion fails (like j at the last line).
:bufdo %s/old/new/ge | update
The :bufdo command executes an Ex command in every loaded buffer.
buffers-windows #buffers #ex-commands #editing #substitution
zd
zd removes the fold definition at the cursor position — the text inside the fold is not deleted.
\&
Vim's \& operator is the AND combinator in a search pattern.
:g/^$/d
The :g/^$/d command deletes every blank line in the file using Vim's powerful global command.
:nnoremap <expr> j (v:count == 0 ? 'gj' : 'j')
Expression mappings use the flag to evaluate a Vimscript expression at the time the key is pressed.
:set wildcharm=<C-z>
The wildchar option (default ) triggers wildcard completion interactively on the command line.
:'<,'>s/\%V./\U&/g
When you need to transform text in-place without touching surrounding content, \%V is one of Vim's most precise tools.