Vsvim: Ctrl+V should go to visual block mode

Created on 24 Jun 2010  ·  19Comments  ·  Source: VsVim/VsVim

Ctrl+V can be used to switch from normal to visual-block in Vim, but doesn't work in VsVim.

feature request

Most helpful comment

I figured out to resolve ctrl-Q launching quick launch.
In case anybody else sees the same issue, here is the solution:
In visual studio, select tools->options->visvim->keyboard
There are existing entries, including ctrl+Q
Switch from controlled by visual studio to controlled by visvim

All 19 comments

This is a really tricky one. We can add it very easily but that also essentially disables paste in Visual Studio. I'm worried about making that the default because it's a keystroke people are very familiar with.

Agreed, it definitely shouldn't be the default. But I don't see any reason the option shouldn't be there if people really want it. I'd propose that if we make this change we have some set of "keybindings we won't touch unless the user really wants us to", and change the buttons in the conflicting margin that would normally remove all, and just have it remove all except the few we know are probably unwise.

It is Ctrl-Q on Windows by default.
http://vimdoc.sourceforge.net/htmldoc/gui_w32.html#CTRL-V-alternative

Ctrl-Q currently does go into Visual Mode for VsVim. Jason wants Ctrl-V to additionally go into visual mode.

for me its just weird. Ctrl-V is mapped to Windows's Paste function.

@SergeyMirvoda I agree.

There are a subset of people who do still want Ctrl-V to map to Visual Mode. Jason and I are considering adding a key remapping button which essentially says "I'm hardcore, send everything to VsVim" to satisfy that group.

I'm hardcore and wish for this,
glad for the work around of Ctrl-Q however, ty.

Ctrl-V should be visual mode, paste should be "+p

Is there a workaround to get the Ctrl+V to enter visual block mode?

You can use CTRL-Q to enter Visual Block Mode. This is the typical way Win32 versions of gVim enter Visual Block mode due to the conflicts with standard windows paste.

For a more thorough discussion see

:help CTRL-Q

I know Ctrl-Q is an alternative, but I find it very impractical. I keep accidentally pasting stuff, when I try to select things. That's why I was hoping for some sort of work around (although I don't know what that would look like).

But in the absence of a workaround; I guess I'll just have to retrain my muscle memory to use Ctrl+Q...

Please at least give me the option to use Ctrl-V to enter Visual Block mode. After 20 years of using Vim, I don't want to retrain my muscle memory ;~).

I've gone ahead and added support for this in the next version (currently in next branch)

My big fear with this change is that it will throw off a number of Vim users who expect CTRL-V to be paste. I'm very wary about making this the default because I believe (perhaps incorrectly) that the majority of Vim users on Windows expect CTRL-V to be paste.

To alleviate my concern here I've changed the key binding dialog to not automatically convert CTRL-V to being handled by VsVim. It must be manually selected (the same will apply to CTRL-X when I enable that command). Not entirely happy with this UI right now but it at least gives power users the ability to enable this.

Thanks Jared. Much appreciated.

-----Original Message-----
From: jaredpar [mailto:[email protected]]
Sent: Sunday, June 12, 2011 11:58 PM
To: [email protected]
Subject: Re: [VsVim] Ctrl+V should go to visual block mode (#241)

I've gone ahead and added support for this in the next version (currently in next branch)

My big fear with this change is that it will throw off a number of Vim users who expect CTRL-V to be paste. I'm very wary about making this the default because I believe (perhaps incorrectly) that the majority of Vim users on Windows expect CTRL-V to be paste.

To alleviate my concern here I've changed the key binding dialog to not automatically convert CTRL-V to being handled by VsVim. It must be manually selected (the same will apply to CTRL-X when I enable that command). Not entirely happy with this UI right now but it at least gives power users the ability to enable this.

Reply to this email directly or view it on GitHub:
https://github.com/jaredpar/VsVim/issues/241#issuecomment-1357155

In Vim p is paste, <c-v> is visual block mode. We're using VsVim is to get Vim bindings. I don't understand why this particular CUA binding is being treated as sacred. Paste is one of the first things a new Vim user learns, assuming they're using something like vimtutor.

The only Vim users using <c-v> for paste are misguided beginners using eVim as a way to ease their learning curve. They aren't the target audience for VsVim, i.e. folks already dependent on Vim and therefore willing to make their Visual Studio setup decidedly non-standard.

@EricTetz All users could just map Ctrl+V to VsVim in Tools -> Options -> Keyboard. This makes Ctrl+V from normal mode enter visual block mode and paste from insert mode, just like Windows gvim.

Does ctrl-Q still work? It goes into Quick launch menu for me

I figured out to resolve ctrl-Q launching quick launch.
In case anybody else sees the same issue, here is the solution:
In visual studio, select tools->options->visvim->keyboard
There are existing entries, including ctrl+Q
Switch from controlled by visual studio to controlled by visvim

@ahartschen I think you are in the wrong repository. You are looking for https://github.com/VSCodeVim/Vim

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaredpar picture jaredpar  ·  5Comments

thelamb picture thelamb  ·  5Comments

prat0088 picture prat0088  ·  4Comments

jaredpar picture jaredpar  ·  5Comments

iamkarlson picture iamkarlson  ·  7Comments