How to redo when using VsVim?
Asked Answered
D

3

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?

Deoxyribose answered 14/12, 2011 at 6:18 Comment(0)
P
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.

Persecute answered 30/1, 2012 at 19:23 Comment(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?Tomlinson
@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?Persecute
S
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.

Skewbald answered 23/2, 2012 at 15:50 Comment(0)
S
1
  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.
Surveillance answered 5/5, 2023 at 6:50 Comment(2)
I have my control + r set to VsVim but I too had to use control + z to redoMatlick
I was wrong about Ctrl+Z and i correct it.Surveillance

© 2022 - 2024 — McMap. All rights reserved.