How do you insert a vertical column of text and indent it in Sublime Text 2 using the vim key bindings?
(source: yannesposito.com)
I have seen th
If you have a mouse you can click and drag with with middle mouse button to do a visual block, I've never found a keyboard command for visual block in ST2 Vintage Mode though.
It's a bit fiddly and an extra keystroke, but it is possible: you just have to split the selection into multiple cursors before you do the standard VIM Shift+I
So the whole routine (on a Mac) is:
Select block with V/v + motion keys
CommandShift + L
V/v to exit visual mode
Multiple cursors that you can move, insert, whatever!
Alternatively, you can do what I did and adopt a hybrid approach by changing Sublime's Shift + Control + arrow keybindings to be Shift + Control + motion keys instead.
[
{ "keys": ["ctrl+shift+j"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+shift+k"], "command": "select_lines", "args": {"forward": false} }
]
Shift + Control + K conflicts with OS X's built-in "kill all lines" binding, but ST bindings override those, and you shouldn't be using that one anyway... it's from Emacs ;)