LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   emacs vs vi (https://www.linuxquestions.org/questions/linux-newbie-8/emacs-vs-vi-126871/)

usr 12-18-2003 04:42 AM

emacs vs vi
 
I started to learn how to use vi and emacs. I noticed that a lot of people use pico to edit text documents and I want to ask you what text editor is the best (emacs, vi or pico).

Thanks!

MartinN 12-18-2003 05:05 AM

Oh, dear! This is almost as asking which is best of Windows, Linux and Mac OS.

I've always used emacs, so I would say it's the best. There are so many strange key combinations in vi. Not at all as user friendly as emacs. :D

Regards
Martin

esteeven 12-18-2003 05:16 AM

Surely Windows is best????


Not

MartinN 12-18-2003 05:21 AM

Quote:

Originally posted by esteeven
Surely Windows is best????


Not

I didn't intend to start a flame war here with my post. I'm writing this on a Windows machine. It's currently playing music that's fetched with Samba from my main Linux machine behind my back.

Martin

vasudevadas 12-18-2003 06:37 AM

Vi is unfriendly but emacs is large, bloated some say, with loads of features. I'd say use emacs if you can't be bothered to learn vi, but vi is small and efficient. Don't know about pico, never used it.

Bebo 12-18-2003 06:55 AM

If you use pine for your email, then you know how to use pico :)

mac_phil 12-18-2003 11:39 AM

I don't know how you can say emacs is user friendly. Both emacs and vi are very different from things like pico and notepad. I guess emacs has menus.

I use vi because I *hate* using meta keys. For me, continuously pressing CTRL-key combinations is slow and uncomfortable. vi is fast and if you spend a few days looking at a cheat sheet you'll pick it up quickly. Of course emacs can emulate vi keybindings.

This is a religious war. Check google groups for a few thousand opinions on the topic.

Bebo 12-18-2003 12:00 PM

...and I *hate* that vi regards entering and deleting text as something apart from one another. I'm EDITING the file, for crying out loud!

markjuggles 12-18-2003 12:10 PM

You will always have a version of vi, so it's good to know the very basics.

My primary editor is JOVE (Jonathan's Own Version of Emacs). It's a very light-weight (in the positive sense) emacs clone. I used to use it in DOS!!

Mark

mac_phil 12-18-2003 03:48 PM

Quote:

Originally posted by Bebo
...and I *hate* that vi regards entering and deleting text as something apart from one another. I'm EDITING the file, for crying out loud!
Then use vim. You can delete while entering text.

Bebo 12-19-2003 04:58 AM

I just tried it - it looks nice. Thanks!

ICO 12-19-2003 05:24 AM

Quote:

Originally posted by markjuggles
You will always have a version of vi, so it's good to know the very basics.

My primary editor is JOVE (Jonathan's Own Version of Emacs). It's a very light-weight (in the positive sense) emacs clone. I used to use it in DOS!!

Mark

are you Jonathan or Mark? I just wonder.

rsheridan6 12-19-2003 05:24 PM

this link http://www.faqs.org/docs/artu/ch13s02.html has a good discussion by Eric S Raymond of vi and emacs, among a few other editors.

I prefer emacs myself (as does esr). As for bloat, I just fired up gvim and vim and compared memory usage with emacs, using top. Emacs (which has been running for days with several buffers open) is using about 10 MB. Gvim (freshly started, not editing anything) uses 5MB and vim uses 3MB. The differences are insignificant on my 2 year old hardware. Mozilla uses 54 MB, for comparison. Maybe it would have mattered back in '92, but not now.

doublefailure 12-19-2003 06:17 PM

both emacs, vi are for programming i think.

notepad, or pico should be fine for non-programming editing.
(although i use emacs for writing a paper too)

it can take you 3-6month to get u familiarized with all the key bindings

slakmagik 12-21-2003 12:01 PM

Quote:

Originally posted by rsheridan6
this link http://www.faqs.org/docs/artu/ch13s02.html has a good discussion by Eric S Raymond of vi and emacs, among a few other editors.
I've been reading this for days (years?) and I finally got to that part. Still in the middle, chasing one of his indirect links. As someone who has a strange fascination with DOS's EDLIN, and, thus, ed, I figured I'd pass this on for any who may not have seen it.

http://www.ussg.iu.edu/hypermail/lin...05.2/0026.html

I haven't laughed so hard in a *long* time as when it got to the sample 'editing session'.

So - screw both those bloated monsters. ED!!


All times are GMT -5. The time now is 06:36 PM.