7

I'm using VS 2010 + latest VsVim. Looks like Vim Ctrl+R does not work in VsVim. Is that true?

VS handled Ctrl+R, saying: (Ctrl+R) was pressed. Waiting for second key of chord...

Is there any way to make this work?

Keith Pinson
  • 7,835
  • 7
  • 61
  • 104
Rob Lao
  • 1,526
  • 4
  • 14
  • 38

3 Answers3

4

VsVim allows you to control whether Ctrl+r is handled by Visual Studio or VsVim itself.

At the bottom of a source file (e.g. *.cs) you should see the VsVim command line and an Options button. Clicking the Options button will give you a menu that lists various keyboard shortcuts and allows you to choose which application should handle them.

Eric Bock
  • 1,732
  • 1
  • 18
  • 22
  • 2
    I couldn't get this solution to work for some reason in VS 2015. In my case, VS still waits for the second key chord. Any idea? – haku Feb 16 '16 at 01:17
  • 2
    @NoSaidTheCompiler With newer versions of VsVim the keyboard bindings have moved into their own settings page. Can you check Tools > Options > VsVim > Keyboard to see if Ctrl + R is being handled by VsVim? – Eric Bock Feb 17 '16 at 19:42
3

Yes. There is an Option button in after the VsVim command line. But even if I choose to VsVim to handle Ctrl+R, VS is still handling Ctrl+R and complains: '(Ctrl+R) was pressed. Waiting for second key of chord...' I just tried to change this setting and let VS handle Ctrl+R, then change it back to VsVim. But still can't redo a previously undoed editting.

wiser
  • 179
  • 1
  • 7
0
  1. Can you check Tools > Options > VsVim > Keyboard to see if Ctrl + R is being handled by VsVim?
  2. Ctrl + Z may helps to redo in VsVim2022.
Theon Soong
  • 109
  • 1
  • 5