How do I search across files with lvimgrep and keep results in a window-local location list?
:lvimgrep /pattern/j **/* | lopen
Quickfix is great, but it is global.
233 results for "10@a"
:lvimgrep /pattern/j **/* | lopen
Quickfix is great, but it is global.
:lockmarks
Many Ex commands silently adjust or delete marks as a side effect of modifying buffer content.
:botright split
When you split a window with :split or :vsplit, Vim subdivides only the current window.
buffers-windows #buffers #windows #ex-commands #command-line
matchadd()
The matchadd() function adds a persistent highlight for a pattern in the current window without touching your search register or interfering with n/N navigation
:normal! {cmds}
:normal {cmds} executes normal-mode keystrokes from the command line, but it honors your custom key mappings — so remapped keys produce unexpected results in
command-line #ex-commands #macros #normal-mode #command-line
:'<,'>s/\%Vold/new/g
The \%V atom restricts a search pattern to match only within the visual selection area, including visual block selections.
:set winblend=20
Neovim's winblend option controls the pseudo-transparency of floating windows.
z.
Vim has two flavors of each screen-repositioning command: one that only moves the view and one that also repositions the cursor.
<C-r>=system("date")<CR>
The expression register (=) is one of Vim's most powerful yet underused features.
:sview {file}
The :sview command opens a file in a horizontal split window with the buffer set to read-only.
buffers-windows #buffers-windows #windows #navigation #ex-commands
:[range]g/pattern/command
The :global command accepts an optional line range prefix that restricts which lines it even considers matching.
:set nrformats-=octal
Vim's and increment and decrement numbers under the cursor.
:w !cmd
The :w !cmd command sends the buffer's contents as standard input to an external command without modifying the buffer.
:earlier {N}m
Vim's :earlier command lets you travel back through the undo history by wall-clock time rather than by the number of changes.
:lua vim.lsp.inlay_hint.enable()
Neovim 0.
'[ and ']
Vim automatically sets two special marks after every change, yank, or put operation: '[ and '].
:5t.
The :t ex command (also spelled :copy) copies a range of lines to a target address without touching any register.
/\%>80v.
The pattern /\%>80v.
:earlier {time}
Vim's :earlier and :later commands let you travel through undo history using real-world time intervals instead of individual change counts.
<C-w>^
Vim tracks the alternate buffer — the last file you were editing before the current one.