vi because emacs isn't on all the machines I use. I like it for quick changes or UNIX scripting. For Java, I prefer to use a graphical IDE. Even though I still mostly use the keyboard, I find it faster.
My favorite vi thing was in grad school. I was trying to update files on a very slow dialup connection. I used vi to "type ahead" a bunch of commands and then stopped and saw all the output.
Originally posted by Doug Slattery: And a non-blowing alternative would be?
They all blow.
Srikanth Raghavan
Ranch Hand
Joined: Oct 31, 2005
Posts: 389
posted
0
VIM. Plain VI is still a nightmare. I was *playing* with VI when I was in college, but after I started working I used only Eclipse. When I used VI after a very long time, I came to know that I forgot everything except "ESC:q!" (the safety exit command).
Now occasionally I use VIM, I would like to learn Emacs too. But not in the near future. I have other things in my list to master that are more important. But it's good to know VI though, it's on every damn *nix machine.
Originally posted by Bear Bibeault: Neither. They both blow.
Must be one of those... Mac users.
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
Eh. I use vi often enough on my Mac. It's easy and familiar, and it's immediately available on any unix (and installable on Windows). Good enough for me.
I've only been using *nix for 20 years or so, not long enough to learn Emacs. Back then, many terminals didn't have a good meta key, so I stayed with vi.
Plus I really started on TOPS-10 with teco, which also used the ifoo$ model to insert foo at the current point.
I found vi or vim on every computer I care about, so its enough. I do far more typing into eclipse or netbeans or horrors Word anyway
Ernest Friedman-Hill
author and iconoclast
Marshal
Apparently a lone voice in the wilderness, once again. Why do I even hang out with you people? :roll:
Emacs, you insensitive clods!
(Actually, the answer is "both". I'll use vi to do quick, little things, Emacs to do any actual coding when I'm not using an IDE. It's nice to know vi for when you're in single-user mode, fixing a corrupted filesystem.)
I started using emcas in 5th grade, when my dad brought home a dumb terminal and an acoustic modem. those were the days, when you could read the text faster than it downloaded...
My father was curious about the whole vi vs. emacs thing (he was a BIG emacs guy). He even went so far as to do an informal survey among everyone he knew.
almost without exception, people liked whichever they used first. and i mean REALLY used, not just tried it for 10 minutes...
Never ascribe to malice that which can be adequately explained by stupidity.
Looks like i also join with most of the folks who happened to know and work with 'vi' first and without having any other good reason to work with 'emacs'.
I guess mostly 'vi' becomes the defacto editor. Is nt it?
Originally posted by Ernest Friedman-Hill: Apparently a lone voice in the wilderness, once again. Why do I even hang out with you people? :roll:
Emacs, you insensitive clods!
(Actually, the answer is "both". I'll use vi to do quick, little things, Emacs to do any actual coding when I'm not using an IDE. It's nice to know vi for when you're in single-user mode, fixing a corrupted filesystem.)
As always, those who advocate emacs are also the evidence of what it is useful for. vi for nerds, emacs for power geeks.
In my 13th year of training, I've still only had 3 students who would not work without emacs. But once they got it, hoooooly s* they were fast and productive. If I had complex programming work to do most of the day, I would certainly prefer emacs over an IDE; I might prefer it over vi once I hit the limits of that tool.
I can still do things in vi* that no other editor seems to be able to incorporate, and I demonstrate those techniques in all Solaris classes I teach, including Java. Which is a bit of a political problem, since Sun wants to enforce, more or less, using NetBeans for everything.
But here's the main thing about vi; there's never a reason for your fingers to leave the keyboard. If we're talking about raw productive speed, nothing wastes time like having to reach for the mouse.
Make visible what, without you, might perhaps never have been seen. - Robert Bresson
But here's the main thing about vi; there's never a reason for your fingers to leave the keyboard. If we're talking about raw productive speed, nothing wastes time like having to reach for the mouse.
can't the same be said about emacs?
Frank Silbermann
Ranch Hand
Joined: Jun 06, 2002
Posts: 1328
posted
0
I was forced to learn VI twenty-five years ago in grad school, and though I get increasingly less chance to use it in the Windows world, I feel I am extremely productive with it (for the reasons others have mentioned).
That said, I would never recommend anyone else to learn it. When I learned it, I strongly resented the need to memorize a bunch of meaningless key-strokes to get anything done, and if I had to deal with a several different editors designed around the same principle, each with its own idiosyncratic set of arbitrary mappings, the world would be an ugly place indeed.
Even though I like LISP, I never learned EMACS. After I had finally become competent in VI, I began to meet EMACS enthusiasts, but none of them could point me to a book on the subject, all of them insisting that the online help was sufficient.
I prefer to learn things in a top-down rather than bottom-up fashion; first explain to me the designer's philosophy and basis for making choices when confronted by trade-offs; don't give me the details until you've first given me a mental structure on which to hang them. I was pretty late in my career and no longer working much in UNIX by the time someone mentioned that, yes, a book on EMACS did in fact exist. So I never bothered trying to learn it.
Not being an emacs guru, I'm not sure, but I'm 99% sure that the answer is yes. and all of the emacs gurus that I've known really fly with it.
Its clearly very powerful.
You can actually do powerful stuff with vi, but its way arcane. I probably spend the first year or two using vi with only four or five commands.
Someone up thread mentioned keeping your hands on the keys. Nearly all vi implementations can do movement using jkl keys, but I rarely use them, I use the silly arrow keys on a PC. Slower for sure, but that's what I do.