r/coding • • Oct 04 '13

Just use Sublime Text (instead of vim)

http://delvarworld.github.io/blog/2013/03/16/just-use-sublime-text/
43 Upvotes

254 comments sorted by

View all comments

11

u/brainflakes Oct 04 '13

But, for software development, why pick Sublime over an IDE?

7

u/Guvante Oct 04 '13

Some people don't like IDE's for various reasons, typically the VIM crowd isn't interested in the IDE experience.

5

u/MediumRay Oct 05 '13

Or, you configure vim to be an IDE, or use a vim keybinding plugin to your IDE. Win-win.

1

u/xwz86 Oct 05 '13

Or configure your IDE to become vim.

4

u/MediumRay Oct 05 '13

Isn't that the same as using the vim keybinding plugin to your IDE?

3

u/xwz86 Oct 05 '13

Honestly, I just replied as a joke :) Although I was referring to the plugins for Visual Studio and IntelliJ, vs: Vim with all of the plugins that would literally make Vim into IDE. You are productive either way, but I don't consider Vim + 50 plugins, or Sublime + 50 plugins, just a text editor. IDEs are just text editors with plugins if you think about it.

2

u/MediumRay Oct 05 '13

I think I agree. A lot of people say that you shouldn't turn vim into an IDE for whatever reason. I say meh.

Have you used the Visual Studio plugins etc.?

1

u/xwz86 Oct 05 '13

Not yet, but I'll install the Idea VIM plugin tomorrow morning and play with it. I've heard that the plugin is somewhat buggy, but I really hope it isn't

1

u/MediumRay Oct 06 '13

Cool, let me know. One thing I want to know is whether it gives you the keybindings, or actually reads your .vimrc file.

3

u/eikenberry Oct 04 '13

Because some people use a flexible IDE where you can swap out parts like the text editor.

0

u/[deleted] Oct 04 '13

[deleted]

2

u/Fsmv Oct 04 '13

Text editors are great for compiled language development as well so long as you're using a proper build system.

With C++ use something like CMake or just write the make file yourself then your compiling becomes typing "make" into the command line (which you can do without leaving vim actually). Then with Java you can use something like Maven. It's not like people are compiling their software manually or something. If you're working in a large team those build systems are much better than sharing your IDE's project files or something.

5

u/tsujiku Oct 04 '13

IDEs have other features than the build button...

1

u/Fsmv Oct 04 '13

I'll concede that. I don't have a class outline in vim and I don't have auto complete. I can't think of much more I miss from an IDE, except maybe the built-in debugger but with C++ at least I certainly prefer gdb over any IDE's option. I actually still use Eclipse with Java though.

2

u/mondoman712 Oct 04 '13

UNIX is my IDE.

1

u/loluguys Oct 05 '13 edited Oct 05 '13

IDE's always have felt far too clunky for me. 95% of the 'features' are things I don't even use, and are just a distraction and eyesore. (Of course, you can hide them, but that's just throwing your trash under the bed.)

1

u/dacjames Oct 07 '13

Multiple editors. I've never seen an IDE that supports the kind of text editing functionality the Sublime (and Vim) does.

1

u/brainflakes Oct 07 '13

I've never seen an IDE that supports the kind of text editing functionality the Sublime (and Vim) does.

Can you give an example of those features? I'm genuinely interested.

1

u/dacjames Oct 07 '13

Multiple editors allow you to edit more than one location in a file simultaneously, which can be extremely efficient.

Let me give you a real world example: recently, I had to write a parser for the data files from the census. They use an archaic, fixed width header format, the spec for which is embedded in a PDF document. I grabbed the text for the spec from the PDF, in the form of a text table. Using multiple editors, I worked on all the rows at once, transforming them into a Python dictionary that my code could read.

I could do all this with regex find/replace, but that's slower and more tedious. Multiple editors allow me to do everything from renaming variables (or changing parts of variable names) to transforming CSV into JSON. It's addicting and hard to give up once you have it.

Sublime has a lot of features that make working with text easy and fast (e.g. join lines), but multiple editors is the most important.

0

u/brainflakes Oct 08 '13

Multiple editors. I've never seen an IDE that supports the kind of text editing functionality the Sublime (and Vim) does.

Multiple editors allow you to edit more than one location in a file simultaneously, which can be extremely efficient.

I'm not sure which IDEs you've used, but Visual Studio supports 2 panel split view on the same file and Eclipse can open an arbitrary number of views on the same file (and both update simultaneously in all views while editing).

I agree it's very useful, but it's a common feature in text editors and IDEs

Let me give you a real world example: recently, I had to write a parser for the data files from the census. They use an archaic, fixed width header format, the spec for which is embedded in a PDF document. I grabbed the text for the spec from the PDF, in the form of a text table. Using multiple editors, I worked on all the rows at once, transforming them into a Python dictionary that my code could read.

That is a handy feature, seems to go well beyond multiple editors, more of a specialised row/column editing I'd call it. Seems pretty limited to dealing with fixed width data but I can see it would be useful to have if you needed it.

0

u/[deleted] Oct 05 '13

The first time I used Intellij, it literally took me 30 minutes to figure out how to edit a file. As in, open it up, change it, and save it.

Another answer that few will admit: Sublime is far and away the sexiest editor around.

-5

u/brtt3000 Oct 04 '13

Following the herd.