Given:
function(param);
With the cursor anywhere on function, I can use ciw on function to replace it, or viw to select the function name.
How do I do the same thing in the following cases:
object.function(param);
object.function<blah>(param);
Note that ciW or viW does not work. Does this require redefining how vim respects its 'words'?
You are on the right track, you need to adjust the way vim separates words.
For this add . as a word separator:
:set iskeyword+=\.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With