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

Show parent comments

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.