Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Sublime is better than vim/emacs

Name: Anonymous 2013-09-22 10:06

Give me just one good reason why I should switch to using archaic shit like vim and I will uninstall sublime and never touch it again.

I'll start by telling you why I use sublime. Also you can't tell me to install additional `plugins' for vim.

- cursor control. Yes, it's useful and at times faster than using a keyboard. If you don't think so you're like one of those fags who owns a DAS keyboard with no key markings.

- it's got a file tree browser with collapsible directories.

- it has syntax highlighting and makes reading code easier

- key bindings i.e. it can do everything that vim can do

- multiple cursor (you jelly?)

Enough for now. Protip: with a little reverse engineering (all you have to do is change 10 bytes in a hex editor) sublime can be yours for free.

Name: Anonymous 2013-09-22 13:04

Vim user here. Sublime Text is a good text editor, and if you feel comfortable with it, there's no reason to switch. As for the points you made:

cursor control
If by cursor control you mean using the mouse to point and click, then gvim (vim in a window) can do that too.

file tree browser
Vim obeys the Unix philosophy of separating areas of concern (do one thing and do it well). It's a text editor, not a file manager, operating system etc. You say no 'plugins', but there's always NERDTree if you really need something for project management. Otherwise, you have netrw (bundled with vim) that shows you an interactive directory listing when you attempt to edit a directory (:e ~/).

syntax highlighting
Vim has excellent support for syntax highlighting, and a metric shit-ton of formats right out of the box. All it takes is

syntax on
filetype on


in your .vimrc to enable syntax highlighting and filetype detection.

key bindings
Vim allows you to rebind everything. You can rebind things specific to an editing mode. You can rebind things recursively. ST can emulate vim to a certain extent (Vintage mode), but it's far from complete. For example, typing 2iyo<esc> gives "yo", not "yoyo". Also, ctrl+v is still mapped to paste, not visual block mode (see below).

multiple cursor
Vim has visual block mode (^V), which allows you to edit multiple lines at once. Pretty neat. OTOH, I haven't found the idea of multiple cursors very useful myself. (Maybe for HTML, but you're better off using something like Zen Coding for that.)

supports tabs
gvim has tabs (:tabedit, :tabnew etc.)  Splits are nicer for side-by-side editing though (:split and :vsplit).

steep learning curve
I agree with you on this one. Vim is not friendly for beginners, because it forces you to unlearn a lot of your habits. There are plenty of learning materials out there, though. Try :vimtutor (built-in) to get a feel for working with vim, and check out http://vimcasts.org/ for instructional videos. Working with vim makes you insanely fast at editing code (Delete a line? dd. Change all "foo"s to "bar"s? :%s/foo/bar/g<enter>. Replace the contents of a parenthesis? ci).) I just tried the last example on a piece of code spanning multiple lines in ST's Vintage mode. It doesn't work (see what I mean about incomplete?).

Also, vim is open source, so you can easily mess around with the internals.

emacs is still shit though

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List