How do I uppercase a word in Vim?
gUiw
The gUiw command converts the entire word under the cursor to uppercase.
gUiw
The gUiw command converts the entire word under the cursor to uppercase.
vat
The vat command visually selects the nearest enclosing HTML or XML tag and all of its contents, including the opening and closing tags themselves.
visual-mode #visual-mode #text-objects #editing #normal-mode
vi{
The vi{ command visually selects everything inside the nearest pair of curly braces {}, without selecting the braces themselves.
visual-mode #visual-mode #text-objects #editing #normal-mode
vip
The vip command visually selects the inner paragraph — all contiguous non-blank lines surrounding the cursor.
visual-mode #visual-mode #text-objects #editing #normal-mode
gqip
The gqip command reformats the current paragraph to fit within the configured textwidth.
guiw
The guiw command converts the entire word under the cursor to lowercase.
daw
The daw command deletes a word including one side of its surrounding whitespace.
dit
The dit command deletes the text inside the nearest enclosing HTML or XML tag pair without removing the tags themselves.
ciw
The ciw command deletes the inner word under the cursor and drops you into insert mode so you can type a replacement.
ci{
The ci{ command deletes everything inside the nearest pair of curly braces {} and places you in insert mode to type a replacement.
ci(
The ci( command deletes everything inside the nearest pair of parentheses and places you in insert mode, ready to type a replacement.
diw
The diw command deletes the inner word under the cursor.
vi"
The vi" command visually selects all text inside double quotes, without including the quotes themselves.
visual-mode #visual-mode #text-objects #editing #normal-mode