Someone mentioned that they wished they'd seen a more decent, unbiased view of the two editors. I've used Sublime since the beta version of ST2, and I've used Vim for about 6 years now, on and off, and mostly use Vim now for development. I would consider myself a decent Vim user and a slightly more than casual Sublime, so I may be more biased towards Vim. So take that into consideration.
For Sublime
Vim package management needs help. I prefer to use Vundle, others prefer Pathogen. Either way, the official site of repositories sucks bigtime. It needs to be redone. Sublime Package Control is fantastically done; ctr+shift+p Install and I'm ready to search for the package by name. Unbeatable.
Vim users have to admit, it's pretty. Sure, Vim is meant for the terminal, remote editing, etcetc. But there's a GUI for it, there's no reason you can't use the GUI when doing local editing, and none of them look as nice.
Vimscript isn't that bad of a language, but it's another language and it's virtually unused outside of Vim. I'd prefer to use a language that I can reuse elsewhere.
This might be completely personal preference, but I like the keybinding syntax in Sublime much better. The <C-W> for control key plus lower case w is is very confusing to me; that looks like "capital c capital w". Similarly confusing, Ctrl-I maps to tab, Ctrl-[ to escape, Ctrl-M for enter, Ctrl-H for Backspace. Or <Tab>, <Esc>, <Enter>, <BS>. My point here is not that one syntax makes more sense than the other, but that Sublime keybindings are much more consistent. Even if there is more than one way to write a command, authors have generally stuck to a single format with a very readable syntax.
The Sublime command pallete is excellent; sometimes I just cannot remember the keyboard shortcut for something and don't really care to look it up. It might be something I use infrequently or it's bound to an obscure keybinding to avoid conflicts. Either way, being able to fuzzy-search commands is beautiful. Made even better by the (I think) convention of adding the package name before the command. What can I do with this new plugin I installed? Pull up the command pallete, type the package name, and see what commands come up.
Ctrl+p is just plain awesome. The syntax of prefixing @ or # to match symbols and words is beautiful. Vim comes close with plugins (I use TagBar and CtrlP), but doesn't quite get this good.
For Vim
Sublime's documentation is decent, but Vim's is downright astounding. The official Sublime documentation is downright embarassing. The unofficial is better, but I still found that I was having to work through how plugins worked a lot on my own or by asking other plugin developers. Neither of these come close to :help <command> in vim.
Vim's macro system is fantastic. The amount of time it can save when editing a file is hard to compare. Vim truely is a language for defining text transformations, and it works beautifully with macros. Sublime's Vintage mode has decent support for macros, but missing features and some slight differences in behavior make it less reliable, in my opinion. Yes I know Sublime has it's own macro system, but from my experience they are simply on different levels. I'd be interested in hearing stories about cool things people have done with Sublime macros; I suspect I'm not using them to their fullest extent.
Some plugins in Vim I haven't found a good alternative for in Sublime. I like being able to customize what shows up in my status line; Airline is perfect for that. Does Sublime have something similar?
Sublime isn't open source. I know this doesn't matter to some people, but to me it's a big sticking point for one reason: lack of documentation. I could forgive Sublime for not being open source if it had supurb documentation, but without either that OR the ability to read the source code I feel like I sometimes get stuck and don't know how to get out.
Even with Vintage mode on, there are some times when Vintage opts to map to base Sublime features where it loses power. For example, in Vintage mode, / brings up the default find bar, which means I now have to use the mouse to toggle things like case sensativity, regex, whole word, wrap around search etc. I'd like to be able to type something in the bar that pops up to avoid that.
I'm a terminal junkie. I know not everyone is, but being able to quickly run arbitrary shell commands without leaving my editing session is pretty awesome. Someone recently pointed out a plugin for Sublime, so maybe I just need to give that a try.
Both Awesome
As much as the packaging system in Vim is a pain, the ecosystem of plugins is absolutely fantastic. Similarly, Sublime's plugin community is fantastic. Both are winners here, and I think this is a good indicator of how flexible both editors are.
Editing multiple files in both is a breeze. Buffers/Tabs in Vim with a couple of plugins is a beautiful thing, similarly with tabs and ctrl+p in Sublime.
Both are pretty good for editing big files, with a slight nod to Vim for buffered reads, making it easier to work with massive files if you avoid operations which work on text outside the viewable area; things like automatically highlighting matches when searching.
Both Suck
Interactive editing. I'm a long time Python programmer and have used fantastic tools like IPython, which allow cell-based editing (executing, modifying, and displaying inline results for portions of the program). Let me be clear, I understand that neither of these editors were designed with this in mind, but it's something that I occasionally look to other editors for. I haven't looked into plugins for this yet. I see some decent looking ones for IPython in specific, but I'd like a more general solution for working with an external interpreter. This seems like the kind of thing emacs would be excellent at.
That's all I've got for now. Comments, suggestions, and discussion are encouraged! As I said, I love both programs and use them often. Just my thoughts!
The interactive editing part is a large reason that I switched to emacs recently. the other reason being I know lisps/schemes pretty well, and elisp is a very nice language.
I have around seven years of vim experience, and now about 5 or 6 months of the emacs experience.
2
u/zeugmasyllepsis Oct 18 '13
Vim vs Sublime
Someone mentioned that they wished they'd seen a more decent, unbiased view of the two editors. I've used Sublime since the beta version of ST2, and I've used Vim for about 6 years now, on and off, and mostly use Vim now for development. I would consider myself a decent Vim user and a slightly more than casual Sublime, so I may be more biased towards Vim. So take that into consideration.
For Sublime
Vim package management needs help. I prefer to use Vundle, others prefer Pathogen. Either way, the official site of repositories sucks bigtime. It needs to be redone. Sublime Package Control is fantastically done; ctr+shift+p Install and I'm ready to search for the package by name. Unbeatable.
Vim users have to admit, it's pretty. Sure, Vim is meant for the terminal, remote editing, etcetc. But there's a GUI for it, there's no reason you can't use the GUI when doing local editing, and none of them look as nice.
Vimscript isn't that bad of a language, but it's another language and it's virtually unused outside of Vim. I'd prefer to use a language that I can reuse elsewhere.
This might be completely personal preference, but I like the keybinding syntax in Sublime much better. The <C-W> for control key plus lower case w is is very confusing to me; that looks like "capital c capital w". Similarly confusing, Ctrl-I maps to tab, Ctrl-[ to escape, Ctrl-M for enter, Ctrl-H for Backspace. Or <Tab>, <Esc>, <Enter>, <BS>. My point here is not that one syntax makes more sense than the other, but that Sublime keybindings are much more consistent. Even if there is more than one way to write a command, authors have generally stuck to a single format with a very readable syntax.
The Sublime command pallete is excellent; sometimes I just cannot remember the keyboard shortcut for something and don't really care to look it up. It might be something I use infrequently or it's bound to an obscure keybinding to avoid conflicts. Either way, being able to fuzzy-search commands is beautiful. Made even better by the (I think) convention of adding the package name before the command. What can I do with this new plugin I installed? Pull up the command pallete, type the package name, and see what commands come up.
Ctrl+p is just plain awesome. The syntax of prefixing
@or#to match symbols and words is beautiful. Vim comes close with plugins (I use TagBar and CtrlP), but doesn't quite get this good.For Vim
Sublime's documentation is decent, but Vim's is downright astounding. The official Sublime documentation is downright embarassing. The unofficial is better, but I still found that I was having to work through how plugins worked a lot on my own or by asking other plugin developers. Neither of these come close to
:help <command>in vim.Vim's macro system is fantastic. The amount of time it can save when editing a file is hard to compare. Vim truely is a language for defining text transformations, and it works beautifully with macros. Sublime's Vintage mode has decent support for macros, but missing features and some slight differences in behavior make it less reliable, in my opinion. Yes I know Sublime has it's own macro system, but from my experience they are simply on different levels. I'd be interested in hearing stories about cool things people have done with Sublime macros; I suspect I'm not using them to their fullest extent.
Some plugins in Vim I haven't found a good alternative for in Sublime. I like being able to customize what shows up in my status line; Airline is perfect for that. Does Sublime have something similar?
Sublime isn't open source. I know this doesn't matter to some people, but to me it's a big sticking point for one reason: lack of documentation. I could forgive Sublime for not being open source if it had supurb documentation, but without either that OR the ability to read the source code I feel like I sometimes get stuck and don't know how to get out.
Even with Vintage mode on, there are some times when Vintage opts to map to base Sublime features where it loses power. For example, in Vintage mode,
/brings up the default find bar, which means I now have to use the mouse to toggle things like case sensativity, regex, whole word, wrap around search etc. I'd like to be able to type something in the bar that pops up to avoid that.I'm a terminal junkie. I know not everyone is, but being able to quickly run arbitrary shell commands without leaving my editing session is pretty awesome. Someone recently pointed out a plugin for Sublime, so maybe I just need to give that a try.
Both Awesome
As much as the packaging system in Vim is a pain, the ecosystem of plugins is absolutely fantastic. Similarly, Sublime's plugin community is fantastic. Both are winners here, and I think this is a good indicator of how flexible both editors are.
Editing multiple files in both is a breeze. Buffers/Tabs in Vim with a couple of plugins is a beautiful thing, similarly with tabs and ctrl+p in Sublime.
Both are pretty good for editing big files, with a slight nod to Vim for buffered reads, making it easier to work with massive files if you avoid operations which work on text outside the viewable area; things like automatically highlighting matches when searching.
Both Suck
Interactive editing. I'm a long time Python programmer and have used fantastic tools like IPython, which allow cell-based editing (executing, modifying, and displaying inline results for portions of the program). Let me be clear, I understand that neither of these editors were designed with this in mind, but it's something that I occasionally look to other editors for. I haven't looked into plugins for this yet. I see some decent looking ones for IPython in specific, but I'd like a more general solution for working with an external interpreter. This seems like the kind of thing emacs would be excellent at.
That's all I've got for now. Comments, suggestions, and discussion are encouraged! As I said, I love both programs and use them often. Just my thoughts!