How can I write "(" in a macro in vsVim?

I am trying to write a macro that will print a small piece of text that contains the bracket "(", whenever I try to play the macro, it does not type "();" at the end of the line.

I assume that the bracket in the macro may have some special meaning, but in my case I just want to enter "(".

What is breaking my macro? How can I copy brackets?

(note: I am using Visual Studio vsVim plugin )

Edit: I can no longer recall the exact macro, but it went something like this:

qa 5 j ^ 2 wi .EndInit(); esc q 

It was supposed to add .EndInit(); to every 5th line, but the output was just .EndInit .

Please note that on another computer without the resharper plugin this problem does not occur!

+3
visual-studio resharper vsvim
Apr 30 '15 at 20:25
source share
1 answer

The most likely problem here is that R # eats a keystroke ( . This means that it never gets into VsVim and therefore is not recorded as part of the macro.

The next question tracks the cleanup. It will also contain fixes for R #.

https://github.com/jaredpar/VsVim/issues/1393

+1
May 2, '15 at 23:01
source share



All Articles