Question

I have these maps in my .vsvimrc and they work as expected. I presss z followed by / or Shift+/ and comments are added.

map <z></> :vsc ReSharper.ReSharper_LineComment<CR>
map <z><?> :vsc ReSharper.ReSharper_BlockComment<CR>

These do not work.

map <z><w> :vsc ReSharper.ReSharper_ExtendSelection<CR>
map <z><W> :vsc ReSharper.ReSharper_ShrinkSelection<CR>

I have tried mapping them to various other keys (including ones that have been proven to work on other R# commands) but the selection is not being extended.

Is this possible?

Was it helpful?

Solution

This appears to be a bug in VsVim. When executing a :vsc command the keyboard focus is on the command line editor control. ReSharper appears to use the keyboard focus to figure out which text editor is currently active. Before executing the command VsVim should be putting the focus in the correct place. I filed the following bug to track fixing it

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top