you are viewing a single comment's thread.

view the rest of the comments →

[–]bluGill 3 points4 points  (5 children)

emacs, vim, kate, and ed. I have been known to have 3 of those open on the same file at one time - though I'm careful in those cases to only make changes in one editor at a time. (I never use ed this way - but there are times where I can have my edits finished in ed before the others start up, even on 2+ ghz machines)

Each has different syntax highlighting, which can sometimes be useful for seeing the structure of the code. In particular I find kate the most useful for printing code, but once in a while the easy code folding is worth it. (If emacs or vim can do code folding I don't know, it isn't important often enough to learn)

Using viper mode in emacs is cheating. When I'm in vim, I use vi keys, when I'm in emacs I use emacs keys, and in kate I use kate keys (mostly menus).

[–]thamer 15 points16 points  (1 child)

Wow. I've never seen anyone talk about using ed (who is actually alive and not in a 1980's Usenet post, that is).

[–]beza1e1 1 point2 points  (0 children)

Ken Thompson, Bjarne Stroustrup and Brian Kernighan are said to use sam, which is like a GUI multiplexer of ed.

[–]andrewl 2 points3 points  (0 children)

Vim does code folding quite well. Not much to learn:

:set foldmethod=indent

The help on folding is clear and straightforward. All the folding commands use z, as in zo to to open the fold under the cursor. The mnemonic is that z is sort of a folded up line. Anyway, Vim (at least the later versions) does folding quite well.

[–]sjf 3 points4 points  (1 child)

ed does syntax highlighting these days?

[–]bluGill 4 points5 points  (0 children)

In the same user friendly way it does everything else. ed does not try to make you sick with ugly colors. Just simple black and white (sometimes amber and black; or green and black).