I'm using CTRL + n to do auto-completion when editing - since years.
One things that annoys me (and now I want the solution) is that the completion is not replaced characters until the next non-letter-characters (everything else than
0-9a-zA-Z_ for me).
For exemple, I have the following line:
auto a = obj->getSomething()
I want to change the called method to
getString. I'll put my cursor right behind the
S and press CTRL + n until the right method appears and I select it with ENTER. Here is what I end up with
auto a = obj->getStringomethingNumber()
Ideally vim would have replaced everything up to
( with the method-name, so to get it directly, without have to do dw manually.
auto a = obj->getString()
How can achieve this?