Vintage icon indicating copy to clipboard operation
Vintage copied to clipboard

There should be a block selection mode when pressing Ctrl+V

Open maelp opened this issue 12 years ago • 62 comments

The block selection mode of Vim is very practical to make multiple-line insertions or modifications :)

maelp avatar Feb 26 '12 22:02 maelp

In my experience Vim's block selection is useful in a subset of the case for which Sublime's multiple selection is useful (i.e. multiple selection is more powerful). So I'm more than happy having multiple selection instead. Thoughts?

misfo avatar Mar 09 '12 05:03 misfo

I did not know at that time that there existed a multiple selection feature, however I'd be interested to know how to easily write a plugin such that ctrl+v enters column multiple selection mode, and that pressing up and down selects the column on the line above or below, and pressing left and right is equivalent to pressing shift+left and shift+right in multiple selection in that it does a block selection is that complex to write, would you mind giving me a hint as to where I should look to understand how to do this (I know Python but I never wrote plugins for Sublime Text, plus I wonder whether one should add the key shortcut to the vintage shortcuts or to the Sublime Text general key shortcuts? )

On Fri, Mar 9, 2012 at 06:38, Trent Ogren [email protected] wrote:

In my experience Vim's block selection is useful in a subset of the case for which Sublime's multiple selection is useful (i.e. multiple selection is more powerful).  So I'm more than happy having multiple selection instead.  Thoughts?


Reply to this email directly or view it on GitHub: https://github.com/sublimehq/Vintage/issues/74#issuecomment-4410326

maelp avatar Mar 09 '12 08:03 maelp

@misfo, I don't think ST has a true block selection? Vertical selections that are smaller than whole lines will necessarily be multiple selections. I'm fine with this.

So:

  • CTRL-V
  • 2j

...would yield three selections starting at the same column. Further horizontal movement should then work as in multiple selections. Further vertical movement should add/subtract selections.

Is that what you mean?

guillermooo avatar Mar 09 '12 09:03 guillermooo

I think that could work. I'm just not sure it would provide much advantage over just using the existing multiple selection functionality with Vintage mode

misfo avatar Mar 09 '12 13:03 misfo

That would be great

On Fri, Mar 9, 2012 at 14:06, Trent Ogren [email protected] wrote:

I think that could work. I'm just not sure it would provide much advantage over just using the existing multiple selection functionality with Vintage mode


Reply to this email directly or view it on GitHub: https://github.com/sublimehq/Vintage/issues/74#issuecomment-4416026

maelp avatar Mar 09 '12 13:03 maelp

Meaning Ctrl+D and Ctrl+U only? I would certainly like to be able to extend/shrink the selection vertically with j/k instead of Ctrl+Alt+Arrow Down. TBH, I've tried to implement this already, but I gave up after a couple of attempts.

guillermooo avatar Mar 09 '12 13:03 guillermooo

+1 for this, as a VIM user Visual Block mode is engrained into my head, not having it is a deal breaker for me

MitchellMcKenna avatar Nov 12 '12 19:11 MitchellMcKenna

I agree that Ctrl+V should do a block selection rather than paste in vim-mode (where people paste with p and P).

@MitchellMcKenna : An easy workaround is to use "wv" instead of ctrl+v, which select the next word. More often than not, I was doing ctrl+v ww or something similar, so by not having the block selection, I make my selection more accurate the first time : )

phzbox avatar Mar 14 '13 02:03 phzbox

+1 want ctrl+v to be vertical selction

yinrong avatar Dec 10 '14 09:12 yinrong

vote for it!

ethan-cao avatar Dec 30 '14 13:12 ethan-cao

+1 for this too

xsong16 avatar Jan 23 '15 03:01 xsong16

+1

slonia avatar Jan 26 '15 07:01 slonia

+1 (this is currently my only reason for not switching to Sublime)

Yakubovich avatar Apr 27 '15 16:04 Yakubovich

@Yakubovich Have you tried Vintageous (on GH too)?

guillermooo avatar Apr 27 '15 20:04 guillermooo

@guillermooo thanks, that works for me!

Yakubovich avatar Apr 28 '15 14:04 Yakubovich

+1 i need the Ctrl + v

tonnyone avatar May 21 '15 09:05 tonnyone

This is my biggest hold back for not using sublime as my full time editor. I love the out of the box vintage mode, but the block selection is a huge feature i use that i wish it had

ebylund avatar Jun 11 '15 00:06 ebylund

+1 want

arasmussen avatar Aug 23 '15 21:08 arasmussen

+1

jwmortensen avatar Sep 14 '15 18:09 jwmortensen

stop using sublime. back to using VIM and find I just don't need sublime

yinrong avatar Sep 18 '15 01:09 yinrong

+1 ctrl+v to column selection!!

hanjukim avatar Dec 17 '15 08:12 hanjukim

+1

hkinks avatar Jan 06 '16 19:01 hkinks

+1

caiotomazelli avatar Jan 07 '16 11:01 caiotomazelli

+1

tl3shi avatar Jan 19 '16 13:01 tl3shi

+100

raghavrv avatar Jan 21 '16 10:01 raghavrv

+1

trobert2 avatar Mar 14 '16 16:03 trobert2

+10086

hlzz avatar Mar 15 '16 11:03 hlzz

4 years later, still not here. Still a dealbreaker. Even if ^V meant using Sublime's multiple selection thing, then great. The fact it isn't there in any capacity forces me not to use Sublime unfortunately.

Qix- avatar Mar 15 '16 17:03 Qix-

In some vim GUIs ctrl-q is used instead of ctrl-v. By using ctrl-q, you don't change the default key mapping for ctrl-v.

tomleo avatar Apr 25 '16 17:04 tomleo

+10086

ghost avatar May 02 '16 01:05 ghost