How do I copy the word under the cursor regardless of cursor position within it?
yiw
How it works The command yiw yanks (copies) the inner word under the cursor.
26 results for "ciw"
yiw
How it works The command yiw yanks (copies) the inner word under the cursor.
0 or ^ at start of macro
A common macro pitfall is assuming the cursor starts at a specific column.
:Oil
oil.
"_d
The "d command deletes text using the black hole register ("), which discards the deleted content instead of storing it.
oil.nvim: edit directory listing like a buffer
oil.
:g/pattern/normal @a
The :g (global) command combined with :normal @a lets you execute a recorded macro only on lines matching a pattern.
macros #macros #ex-commands #global-command #editing #automation