News for hackers. Stuff that matters.
Re:Tabs, spaces and your salary – how is it really? by Sohcahtoa82 on Tuesday June 20, 2017 @05:22PM (#14598737)
To be fair, this applies to vi/vim as well.

I hear it all the time. People saying things like "I use vi/vim instead of an IDE because I can do X" where X is a feature that every IDE worth using has had for 10 years.

I've literally had someone say that they use vi/vim because it does syntax highlighting. What were they using before? Notepad? gedit? Even gedit has syntax highlighting.

"Oh, I use this magical vim plugin that lets me hit this magical key combination and all my code gets automatically formatted." Yeah, but Visual Studio, PyCharm, Eclipse, and basically any other IDE do that out of the box. No plugins necessary.

I don't think I've ever seen someone describe a feature that vi/vim/emacs has that an IDE doesn't (EDIT: Other than the fact that every *nix system is going to have vi, but that's just an argument for knowing how to use it, not one for preferring it over an IDE if one is available). It's like iPhone versus Android about five years ago, where the iPhone fanboys/girls would praise Apple for their innovation for implementing features Android had over a year prior.

Re:Tabs, spaces and your salary – how is it really? by teddyh on Tuesday June 20, 2017 @05:33PM (#14598816)
> I don't think I've ever seen someone describe a feature that vi/vim/emacs has that an IDE doesn't

Emacs can seamlessly access files over ssh, ftp and/or sudo.

Emacs lets me add custom hook commands to run before a file is saved (to check a file’s syntax using an external command), and after it’s saved (to signal reloading of the file to the relevant process).

Emacs also includes my mail reader, my diary, my organizer, a spreadsheet, an stack-based algebraic calculator, etc. but those may be unfair comparisons. :)

Note: All of the above are part of the built-in functionality of Emacs. Third-party extensions can of course do anything.

Re:Tabs, spaces and your salary – how is it really? by abritinthebay on Wednesday June 21, 2017 @01:56AM (#14601089)
There's an argument that Emacs is a collection of extensions to lisp that happens to include a text editor
Re:Tabs, spaces and your salary – how is it really? by jcranberry on Tuesday June 20, 2017 @06:49PM (#14599229)
I find vims block highlighting (ctrl+v) very useful, never noticed it being part of an IDE.

That being said I don't think it's that big a deal but I've seen some fucking vim wizards churn out code faster than what's reasonable for human beings

Re:Tabs, spaces and your salary – how is it really? by Sean1708 on Wednesday June 21, 2017 @07:20AM (#14602734)
> I find vims block highlighting (ctrl+v) very useful, never noticed it being part of an IDE.

As far as I'm aware multicursors are a superset of block editing (i.e. multicursors can emulate block editing but the reverse is not true), so many (most?) modern IDEs can at least emulate block editing.

Re:Tabs, spaces and your salary – how is it really? by hayden592 on Tuesday June 20, 2017 @07:25PM (#14599402)
The Jetbrains suite and Sublime text have this feature. Hold Alt while selecting with the mouse.
Re:Tabs, spaces and your salary – how is it really? by mikebenfield on Tuesday June 20, 2017 @05:41PM (#14598868)
> I don't think I've ever seen someone describe a feature that vi/vim/emacs has that an IDE doesn't

Maybe this has changed in recent years, but in the past whenever I tried IDEs I would be amazed that they didn't have keyboard macros.

Re:Tabs, spaces and your salary – how is it really? by abritinthebay on Wednesday June 21, 2017 @01:57AM (#14601093)
Most have support but it's usually supported via plugin API (trivial in most cases)
Re:Tabs, spaces and your salary – how is it really? by caseymarquis on Tuesday June 20, 2017 @11:37PM (#14600472)
Modal editing? Of course, that's what vim plugins are for. Only Pycharm has it out of the box (as a setting) of the above mentioned IDEs.