Is it possible to start insertion in the beginning of a word when standing in the middle of it with a single keystroke? Currently I am using
Bi, but it does not allow me to use
. to repeat the same action.
I really love
I which operate with a line. I am looking for alternative commands which operate with
W. I was able to find a replacement for
How to append to the end of word with one key stroke? However, its not so easy for
Let's say we have these lines:
random_name: SomeKindOfType = "foo" long_name: AnotherType = "bar" short_name: ThirdType = "spam"
And I want to add a prefix for all the types. When standing in the middle of
SomeKindOfType I would like to press a single keystroke, write
My prefix and then repeat the same insertion two times with
j. to get this output:
random_name: MySomeKindOfType = "foo" long_name: MyAnotherType = "bar" short_name: MyThirdType = "spam"
I have unsuccessfuly tried defining my own command with repeat.vim plugin; it seems not to work with insertion commands such as