How do I uppercase text inside an HTML tag without changing the tags?
vitU
When editing markup-heavy files, you often need to transform only the tag contents while preserving the surrounding structure.
vitU
When editing markup-heavy files, you often need to transform only the tag contents while preserving the surrounding structure.
it and at
Vim provides two built-in text objects for HTML and XML tags: it (inner tag) and at (a tag).
editing #text-objects #editing #visual-mode #html #normal-mode
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.
S"
The vim-surround plugin provides the S command in visual mode to wrap any selection with a delimiter pair.
ysiw<em>
The vim-surround plugin makes wrapping text in HTML or XML tags effortless.
<C-y>,
The emmet-vim plugin brings the full power of Emmet (formerly Zen Coding) to Vim, letting you type a short CSS-like abbreviation and expand it into a complete H
cit
The cit command deletes everything between the nearest pair of HTML/XML tags and drops you into insert mode, ready to type the replacement.