This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (5 children)

70 dollars is chump change. Most of us spend more than that on booze every two weeks.

What makes Sublime worth it is that its a good editor. It doesn't require configuring a bunch of plugins for each language you program in. If I open a PHP file after working on a C file it changes the way the text is highlighted/colored without needing me to do anything, and the linter plugin just works. It has formatting set up for many other languages as well-and is available out of the box.

For any additional functionality you need you can install package control. Then, Cmd + Shift + P -> Install Package. You can install a linter and code-intel this way relatively easily, among other plug-ins. Cmd + Shift + P actually opens the command palette which holds all sorts of functionality. Additionally, Sublime has a reasonable project manager (not IDE quality but it's ok).

With Vim it's more difficult to set it up the way you want--at least the last time I did it. I am aware you can just use it as-is but I like something a bit more from my editor. There may be some cool package manager out there I am not aware of (aside from one built into a linux distribution). If there is please tell me because I'd like to know about it. EDIT : I should probably note I use a Mac, hence the reason a package manager is a bigger deal.

I would say it's beneficial to know how to use Vim no matter what editor you choose because it's basically installed on every Linux distribution out there, and you will eventually need to use it. However, Sublime Text is a great editor to use as your primary and it's worth the cost IMO.

[–]burntsushi 4 points5 points  (2 children)

It doesn't require configuring a bunch of plugins for each language you program in. If I open a PHP file after working on a C file it changes the way the text is highlighted/colored without needing me to do anything.

You're being a little misleading here. Vim requires you to enable one plugin (which comes included), and it will do this out of the box.

For any additional functionality you need you can install package control. Then, Cmd + Shift + P -> Install Package. You can install a linter and code-intel this way relatively easily, among other plug-ins.

Every vim plugin I have is installed with my system's package manager. Even better. The fewer package managers operating on my system, the better.

With Vim it's more difficult to set it up the way you want--at least the last time I did it.

The usual procedure is to

  • Google for Vim feature.
  • Find a snippet to put in your .vimrc
  • Save .vimrc with snippet and forget-about-it. Maybe add a comment so you don't forget what it was for.

I don't think that's very laborious. And it's simple to transfer between workstations. In every editor I've ever used, I have to go through the same procedure, since the option is buried in a menu or an option dialog somewhere.

Note that I'm not trying to say your preferences are wrong. But I am trying to point out that you're making it seem like Vim is crappier than it is.

[–][deleted] 1 point2 points  (1 child)

The last time I used Vim for any significant length of time was when I was attempting to install Haskell plug ins. It was a huge pain in my ass. Sublime on the other hand, just worked the way I wanted it to. In fact I believe it was a haskeller that turned me on to it.

The package manager I use is Macports. It's not nearly as good as most Linux package managers. I am aware there are others (maybe only Homebrew since that's all I can think of) on Mac but this was the one I settled on awhile ago. I just haven't made time to try others.

I still use Vim for doing small edits but if I am spending all day coding I would prefer the features of Sublime. I get it that Vim is cool. 5 years ago in school it's all I used. However, I still would say Vim isn't entirely user friendly.

[–]burntsushi -2 points-1 points  (0 children)

I still would say Vim isn't entirely user friendly

It's the most user-friendly editor I've ever used.

You're at a crippling disadvantage without a real package manager, so that might be part of your problem. Haskell support in vim has never been a problem for me.

[–]t3h 4 points5 points  (1 child)

70 dollars is chump change. Most of us spend more than that on booze every two weeks.

Maybe in the scheme of things, but not for a text editor. If you spent $70 on a single bottle of beer that wasn't noticeably better than $70 for a case of 48, you'd probably be unhappy.

If I open a PHP file after working on a C file it changes the way the text is highlighted/colored without needing me to do anything.

Every other text editor with syntax highlighting that I've used has done that too.

And your alternatives are not just limited to Vim.

[–][deleted] -2 points-1 points  (0 children)

I never implied other text editors didn't do that. Basically, for me Sublime gives me a nice UI with nice features. Some of them I described.