There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:so the question actually become why would you use EITHER of vi or emacs?
Henry Wong wrote:Anyway, if you don't mind, I am going to add a poll (just to see the extent of the following)...
fred rosenberger wrote:...so the question actually become why would you use EITHER of vi or emacs?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Matthew Brown wrote:
Any chance of adding "I have tried both, and prefer to avoid using either whenever possible" to the options?
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Winston Gutkowski wrote:
Well I voted for vi/vim, and I'd say it's because of the power. With the 'ed' commands you can do incredibly complex global replaces of the kind I've only seen in IDE editors, although it's possible there are desktop ones that can do them as well; and with vim you can do cut+paste just like any other visual editor.
Admittedly 'vi' is rather arcane, but once you get it set up properly, you can do some remarkable things with it.
Winston Gutkowski wrote:I guess it just comes down to familiarity. I've heard good things about emacs too, but I've just never used it.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:Of course, these days, you can use something like Notepad++, which does ftp behind the scenes to let you edit your files with a real editor - cut, paste, context highlighting...so the question actually become why would you use EITHER of vi or emacs?
Henry Wong wrote:
fred rosenberger wrote:so the question actually become why would you use EITHER of vi or emacs?
I think that is the point of this topic ... and why it is in the rattlesnake pit.
No more Blub for me, thank you, Vicar.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
fred rosenberger wrote:
My father once did an informal survey of CS folk he knew across the country. His results were pretty much 50/50. What was also interesting was that if you asked the additional question "Which were you exposed to first?", there was a extremely strong correlation to the favorite.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Tim Holloway wrote:The bad thing about vi is that if you sneeze while seated at the keyboard, you've probably managed to press random keys, and just about any random key sequence is a (probably dangerous) vi command. Which, to compound the injury, will probably get executed, since command mode is the default vi editor mode.
Tim Holloway wrote:Emacs also has the additional virtual in that it's easier to run in an independent window, so when I want to do an edit-and-test cycle on a script, I can spawn an Emacs session from the same command window that I'm running the test script in. Vi's natural state is to own that window, so it's a series of start-vi, edit, save/quit, test, repeat. Of course REAL Emacs diehards simply run the script inside a command-line pane within Emacs, but I don't usually have the patience for that.
Tim Holloway wrote:The Emacs macro language is Lisp, so you can feel like an old-school hacker when customizing it.
Tim Holloway wrote:On the mixed-blessing side, Emacs leaves behind a "before" image of the file being edited. This was more important back before git, when sometimes the best way to get out of a hole was to pretend you never dug it. But all those backup files tend to clutter directories until you get around to deleting them.
Adam Scheller wrote:Oh no no no no no! ...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|