01 / JUST GIVE ME THE ANSWER
The quick answer
Vim operators such as d, c and y combine with motions and text objects. daw deletes a word, ci" changes inside quotes, and yip yanks a paragraph.
daw ci" yip02 / EXPLAIN IT PROPERLY
What's going on?
Vim operators such as d, c and y combine with motions and text objects. daw deletes a word, ci" changes inside quotes, and yip yanks a paragraph.
Understanding the underlying mechanism makes troubleshooting much easier than memorising a command in isolation.
03 / UNDER THE BONNET
Dig a little deeper
Start with w, b, e, 0, $, gg and G. Then combine them with d, c, y and text objects such as iw, ap and i(.
04 / TRY IT YOURSELF
Hands-on commands
Try these in a suitable test environment. Read each command before running it, especially if you have elevated privileges.
vimtutor
# In Vim try: dw, ciw, yyp, gg, G05 / THE RABBIT HOLE
One more thing...
The keyboard is a language, not a steering wheel.
Explore another mystery ↗