Rob Lao
Rob Lao

Reputation: 1623

How to redo when using VsVim?

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?

Upvotes: 8

Views: 2393

Answers (3)

Theon Soong
Theon Soong

Reputation: 119

  1. Can you check Tools > Options > VsVim > Keyboard to see whether Ctrl+R was handled by VsVim?
  2. In Normal mode, Ctrl+R is redo.
  3. In Insert mode, Ctrl+R is about VsVim registers.

Upvotes: 1

wiser
wiser

Reputation: 179

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.

Upvotes: 3

Eric Bock
Eric Bock

Reputation: 1782

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.

Upvotes: 4

Related Questions