3 ms·
Vim isn't only about movement, it gives you some very efficient ways to actually manipulate text. Take this example line of code: #define test "Some magica
by agscala 15y ago
Vim isn't only about movement, it gives you some very efficient ways to actually manipulate text.
Take this example line of code:
#define test "Some magical string."
Say the cursor was at the beginning of the line and you wanted to completely change the contents of the string. In a regular editor, you might <ctrl><Right Arrow> a few times and <Del> a bunch to remove everything in the string before you start typing the new one. In vim, you would simply:
f"ci"
And you'd be ready to start typing the new string. Or if you wanted to capitalize 'test':
WgUe
It's difficult to understand the power of modal editing until you experience it