sublimehq / Vintage

Vintage mode adds a vi style command mode to Sublime Text 2
http://www.sublimetext.com/docs/2/vintage.html
579 stars 76 forks source link

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

Open maelp opened 12 years ago

maelp commented 12 years ago

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

misfo commented 12 years ago

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?

maelp commented 12 years ago

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 reply@reply.github.com 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

guillermooo commented 12 years ago

@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:

...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?

misfo commented 12 years ago

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

maelp commented 12 years ago

That would be great

On Fri, Mar 9, 2012 at 14:06, Trent Ogren reply@reply.github.com 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

guillermooo commented 12 years ago

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.

MitchellMcKenna commented 11 years ago

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

phzbox commented 11 years ago

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 : )

yinrong commented 9 years ago

+1 want ctrl+v to be vertical selction

ethan-cao commented 9 years ago

vote for it!

xsong16 commented 9 years ago

+1 for this too

slonia commented 9 years ago

+1

Yakubovich commented 9 years ago

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

guillermooo commented 9 years ago

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

Yakubovich commented 9 years ago

@guillermooo thanks, that works for me!

tonnyone commented 9 years ago

+1 i need the Ctrl + v

ebylund commented 9 years ago

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

arasmussen commented 9 years ago

+1 want

jwmortensen commented 9 years ago

+1

yinrong commented 9 years ago

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

hanjukim commented 8 years ago

+1 ctrl+v to column selection!!

hkinks commented 8 years ago

+1

caiotomazelli commented 8 years ago

+1

tl3shi commented 8 years ago

+1

raghavrv commented 8 years ago

+100

trobert2 commented 8 years ago

+1

hlzz commented 8 years ago

+10086

Qix- commented 8 years ago

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.

tomleo commented 8 years ago

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.

ghost commented 8 years ago

+10086

theSha1chemist commented 8 years ago

+ 1

rschalch commented 8 years ago

+10000

omarps commented 8 years ago

+1

happyHou commented 8 years ago

+1

fut33v commented 8 years ago

+1

yudai524 commented 8 years ago

+1

happyHou commented 8 years ago

+1

mikeybkats commented 7 years ago

+1

mgresko commented 7 years ago

+1

mgresko commented 7 years ago

+1

marciol commented 7 years ago

+1

odjhey commented 7 years ago

+1111 any update on this?

Qix- commented 7 years ago

This hasn't been updated in almost 5 years. This won't be fixed. They have abandoned this project. Find another Vim plugin. '+1'-ing it won't help.

roskow12 commented 7 years ago

+1

houming818 commented 7 years ago

+1 want ctrl+v to be vertical selction

tgudlek commented 7 years ago

+1

pyq19 commented 7 years ago

+1s

lvvorz commented 7 years ago

+10086s

avegancafe commented 7 years ago

+1

mfournial commented 7 years ago

+1