1

For example:

OpRef
  ^- cursor

I press <c-o>ysiw>Option<esc> in insert mode to get:

Option<OpRef>

I want to repeat this command with dot operator, but when I press dot it only replays the last part:

OpRef
  ^- cursor

Press dot:

OpOptionRef
1
1

This is using https://github.com/tpope/vim-surround to get that ysiw> behavior.

The . dot command works on individual changes. The ywis> edit is the first edit and then typing Option is the second edit.

I recommend you record a macro with these keystrokes and then replay the macro.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.