+35

Vintage mode requests

Aaron Kavlie il y a 13 ans mis à jour par David Niergarth il y a 12 ans 8
A few requests for Vintage mode:

- Don't know any way to escape from highlight mode, aside from clicking with the mouse. In vim ESC clears the highlight. Please add this.
- It would be great if command mode had a block cursor, rather than an underline

- Though not a standard vim feature, matchit.vim allows me to jump between open and close html tags with %. I don't know of any way to do this in Sublime Text (Vintage mode or otherwise).

Sublime Text 2 is fantastic so far, and keeps getting better. Thanks for all your hard work!
+2

+1 to adding a block cursor!


Yes, ESC not cancelling the current selection is the main awkwardness I feel when editing. (I do run with vintage_ctrl_keys enabled.)


The second awkwardness is the lack of visual block mode -- Control-v in command mode allows column selecting any block of text. Many times a day still I am pasting the clipboard instead of switching to visual block mode. Adding Control-v for visual block in command mode would, I think, be an unsurprising behavior for vintage_ctrl_keys -- I'm accustomed to having to use Alt-E-P (Edit->Paste) to paste in command mode from using gvim; losing Control-v (to paste) is no hardship.


Sublime's multi-selection abilities don't seem a natural fit for vim's ESC-to-cancel-selection and visual-block behaviors, but don't let that put you off: I wouldn't at all mind being limited to single selection when using vintage keystrokes; that's all you get when using vim anyway.


Adding the Esc and visual block behaviors would make vintage mode feature complete enough for my everyday vim habits (which is an amazing accomplishment from my point of view). Vintage is already much better than WingIDE's (Python IDE) vi/vim keyboard personality -- it mostly just works the way I expect.

+1
Escape not existing from visual mode is a regression in 2126, it'll be fixed in the next beta, or you can use the dev build (http://www.sublimetext.com/dev) to get the fix now
+2
Using 2131, if I tap Escape twice, it will cancel the selection. Is needing to tap twice by design? The vim behavior would be that one tap of Escape is enough to cancel the selection. (I can live with twice if there's some compelling reason!) Thanks for the fix.
-1
Block cursor should be optional. I'm enjoying the underline.
+11
Visual Block Mode is definitely needed. It exists, anyhow, but I have to hold option and select with my mouse. That's visual block! Just make ctrl-V kick it off.
+3
Selecting with mouse is not enough. I want to: start visual block mode; position cursor using motions; operate on a block.
+7
I agree completely. I've stopped using SublimeText2 and gone back to using vim, simply because I rely too much on Control-v to select blocks.
I believe matchit.vim also allows jumping between `do` and `end` in Ruby (and `def` & `end`, `if` & `elsif` & `else` & `end`, `begin` & `rescue` & `ensure` & `else` & `end`, etc...).

Is there some way to write a matchit.sublime plugin?