Vsvim: Add support for CTRL-A and CTRL-X

Created on 13 May 2011  ·  6Comments  ·  Source: VsVim/VsVim

See :help ^A and :help ^X.

Often when creating or asserting test data or working with arrays I'll want to be able to copy a line and then change the index by one which I do with one of the above commands.

Most helpful comment

Wonderful. Thanks for your continual work on VsVim. It's great!!!!!

All 6 comments

Will do.

The only issue though is that CTRL-A and CTRL-X are select all and cut respectively. Cut int particular is hard coded into a lot of Visual Studio users brains to be cut. Remapping CTRL-X by default will probably confuse a lot of users.

I'll probably have to add 2 modes of key binding in VsVim in order to avoid this

  1. Windows guy who likes Vim
  2. I like Vim, give me Vim.

I think it's perfectly reasonable to have a Windows-friendly set of defaults like gvim does (even though I can't stand them after having used Vim in the Unix world for 10+ years).

I just stumbled across issue #241 today (as I was about to file a bug report on blockwise visual mode and didn't know about CTRL-Q) and this feels like the same issue.

Yeah it's pretty much the same issue.

Added. Will push later on tonight.

Note: As discussed these keys aren't enabled by default. They have to be manually converted in the key bindings dialog.

Wonderful. Thanks for your continual work on VsVim. It's great!!!!!

For the sake of documentation: in order to enable ctrl+a and ctrl+x shortcuts, go to VS's shortcut settings, and remove current usages of "ctrl+a" and "ctrl+x". Now VsVim will handle those shortcuts.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArnisL picture ArnisL  ·  5Comments

prat0088 picture prat0088  ·  4Comments

ogirginc picture ogirginc  ·  6Comments

LariscusObscurus picture LariscusObscurus  ·  4Comments

mfrischknecht picture mfrischknecht  ·  6Comments