How do I paste a blockwise register without padding lines with trailing spaces in Neovim?
zp
Pastes a blockwise register like p, but skips padding lines shorter than the block's right edge with trailing spaces.
2277 results for "@a"
zp
Pastes a blockwise register like p, but skips padding lines shorter than the block's right edge with trailing spaces.
ysst
vim-surround's ysst sequence lets you wrap a text object with an arbitrary HTML or XML tag and prompts you to type the tag name.
:'<,'>norm .
The :'norm .
visual-mode #visual-mode #editing #normal-mode #repeat #dot-operator
:w !cmd
The :w !cmd command sends the buffer's contents as standard input to an external command without modifying the buffer.
qa<C-r>=expression<CR>q
How it works The expression register (=) lets you evaluate Vimscript expressions and insert the result.
[/
When editing code, you often need to navigate to the boundaries of multi-line block comments (/ .
:NERDTreeToggle
The NERDTree plugin provides a full-featured file explorer sidebar in Vim, giving you a visual directory tree that you can navigate, search, and manipulate file
:undojoin<CR>
By default, separate edits often become separate undo entries, which makes replaying or backing out a multi-part change noisy.
:set tags+=./tags;,tags
By default, Vim only looks for a tags file in the current directory.
<C-v>{motion}~
Visual block mode () selects a rectangular column region, and pressing ~ at the end toggles the case of every character in that exact column range across all se
zr
zr ("reduce" fold level) decrements the global foldlevel option by 1, opening the next layer of folds across the entire file.
:~
The :~ command repeats the last substitution but uses the current search pattern instead of the original pattern.
:args {pattern}
The :args command sets Vim's argument list to all files matching a glob pattern.
<C-w>N
When using Vim's built-in :terminal, the buffer is in Terminal-Job mode by default, meaning all keystrokes go to the running shell.
\%#
The \%# atom in Vim's regex engine matches the exact position of the cursor — zero-width, between characters.
!{motion}sort
The ! operator in Vim filters a motion's text through an external shell command, replacing it with the output.
yyp
The yyp command duplicates the current line by yanking it and immediately pasting it below.
vim.opt.option:append(value)
Neovim's vim.
:set inccommand=split
Neovim's inccommand option provides real-time visual feedback as you type substitution commands.
[* and ]*
The [ and ] motions (also written as [/ and ]/) let you jump directly to the opening / or closing / of a C-style block comment.