Lets say I have "string"
and I want to dupplicate the double quotes. What is the shortest way to do it?.
I have done a search of double quotes using /"
.
Then I navigate to the different occurences using n
command and I apply this sequence of commands: xPP
I know this can be done also using these commands: xPp
or xP.
Excluding macros and function definitions, is there a shorter key combination to achieve that?
:s/"/""/gc
?/"
thens""<esc>
thenn.
,n.
, ...