How do I delete a word under the cursor?
diw
The diw command deletes the inner word under the cursor.
diw
The diw command deletes the inner word under the cursor.
.
The .
:%s/old/new/g
The :%s/old/new/g command replaces all occurrences of old with new across every line in the file.
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
:g/pattern/d
The :g/pattern/d command deletes every line in the file that matches the given pattern.