How do I wrap text with a custom HTML tag using vim-surround?
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.
216 results for "= motion"
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
s{char}{char}
The vim-sneak plugin by Justin Keyes provides a motion that lets you jump to any visible location by typing just two characters.
ysiw<em>
The vim-surround plugin makes wrapping text in HTML or XML tags effortless.
ct{char}
The ct{char} command deletes everything from the cursor up to (but not including) the specified character and drops you into insert mode.
editing #editing #motions #normal-mode #text-objects #productivity
~ (in visual mode)
In visual mode, pressing ~ toggles the case of every character in the selection.
<C-o>{cmd}
Pressing in insert mode lets you execute one normal mode command and then automatically returns you to insert mode.
"1p
Vim automatically stores your deletion history in numbered registers "1 through "9.
"*
On X11 Linux systems, there are two independent clipboard-like buffers: the primary selection (") and the clipboard ("+).
flash.nvim
flash.
ea
The ea compound shortcut moves to the last character of the current word with e, then enters insert mode after the cursor with a.
gh
Vim's Select mode behaves like the familiar selection model in most GUI editors: after selecting text, any printable character you type replaces the selection a
100@a
When you give a large count to a macro — such as 100@a — Vim automatically stops replaying the macro as soon as any step inside it fails.
"+y
The "+y command yanks (copies) text into the system clipboard register, making it available to paste in other applications outside of Vim.
gnn / grn / grm
nvim-treesitter's incremental selection module lets you grow and shrink your visual selection one syntax node at a time.
(
The ( motion moves the cursor backward to the start of the current or previous sentence.
qa{motions}@aq
A recursive macro is one that calls itself at the end of its own recording.
".
The .
qaq qa...@aq
A recursive macro calls itself at the end of its recording, causing it to repeat automatically until an error — such as reaching the end of the file — stops
v
The v command enters character-wise visual mode, letting you select text one character at a time.