Re:How SublimeText Bodybags vim+Terminator
by lloeki on Sunday February 03, 2013 @09:54AM
(#5159811)
Sublime Text is awesome, but the article falls completely flat by mentioning stuff that's actually in vim and missing the parts that are not.
5. vim compatability!
> With a few tweaks, I was able to make it just like vim as far as I could tell
It took me five seconds to hit walls and off-by-one issues revealing Vintage mode as a remote simulacrum of Vim. A look at the source confirmed that it's just a mode emulation and a small bunch of keybindings, a far cry from the notion of text objects which makes Vim what it is. I am a vim user, but I use ST without Vintage because the impedance mismatch is too big.
> minus some :commands
Author doesn't mention VintageEx. Still thouroughly lacking, even for basic stuff.
4. Powerful Keybindings in JSON and Plugins in Python
:help index lists default keybindings
:verbose map lists all set keybindings, what they do and where they've been set.
With Vim (vim --version will tell you), depending on compilation options, you can write plugins in various languages (python, perl, ruby, lua, tcl...), not just vimscript.
hot-load: :source ~/.vimrc or whatever other file.
3. Package Manager and the More Centralized Community
vim.org/scripts[0] is the central place to look for.
Pathogen and Vundle fix that. Package Control give you a central, automated and in-editor index, which I'm not sure is a real plus since I care about installing plugins once in a blue moon, so that's merely a convenience. Besides I've had Package Control bork ST more than once on upgrades (either of ST or of itself), so I'd rather have it outside.
2. Project Sessions
:mksession is what you want. Bind it to a key[1], or be creative in your vimrc.
Also, automatic restore[2] when there's one around and you boot with just vim in the project directory.
1. Ctrl+P - GotoAnything:
For the function mentioned (fuzzy search for files), there's a plugin of the same name.
The author again fails to mention what makes Sublime Text supposedly stand apart: Go To Anything goes to anything, not just files, so symbols (with @symbol) and lines (with :linenum) are reachable from a single shortcut.
I don't want to sound mean, ST rocks and has a number of good things I miss in Vim, but they're not among this list. In fact it's good enough that I contemplated doing a real Vim mode with extensible text objects (hence why I looked at the Vintage source).
It took me five seconds to hit walls and off-by-one issues revealing Vintage mode as a remote simulacrum of Vim. A look at the source confirmed that it's just a mode emulation and a small bunch of keybindings, a far cry from the notion of text objects which makes Vim what it is. I am a vim user, but I use ST without Vintage because the impedance mismatch is too big.
> minus some :commands
Author doesn't mention VintageEx. Still thouroughly lacking, even for basic stuff.
:help index lists default keybindings :verbose map lists all set keybindings, what they do and where they've been set.With Vim (vim --version will tell you), depending on compilation options, you can write plugins in various languages (python, perl, ruby, lua, tcl...), not just vimscript.
hot-load: :source ~/.vimrc or whatever other file.
vim.org/scripts[0] is the central place to look for.Pathogen and Vundle fix that. Package Control give you a central, automated and in-editor index, which I'm not sure is a real plus since I care about installing plugins once in a blue moon, so that's merely a convenience. Besides I've had Package Control bork ST more than once on upgrades (either of ST or of itself), so I'd rather have it outside.
:mksession is what you want. Bind it to a key[1], or be creative in your vimrc.Also, automatic restore[2] when there's one around and you boot with just vim in the project directory.
For the function mentioned (fuzzy search for files), there's a plugin of the same name.The author again fails to mention what makes Sublime Text supposedly stand apart: Go To Anything goes to anything, not just files, so symbols (with @symbol) and lines (with :linenum) are reachable from a single shortcut.
I don't want to sound mean, ST rocks and has a number of good things I miss in Vim, but they're not among this list. In fact it's good enough that I contemplated doing a real Vim mode with extensible text objects (hence why I looked at the Vintage source).
[0]: http://www.vim.org/scripts/index.php
[1]: https://github.com/lloeki/vimfiles/blob/master/rc#L158
[2]: https://github.com/lloeki/vimfiles/blob/master/rc#L257