LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2003, 04:42 AM   #1
usr
Member
 
Registered: Oct 2003
Posts: 44

Rep: Reputation: 15
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!
 
Old 12-18-2003, 05:05 AM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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.

Regards
Martin
 
Old 12-18-2003, 05:16 AM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
Surely Windows is best????


Not
 
Old 12-18-2003, 05:21 AM   #4
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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
 
Old 12-18-2003, 06:37 AM   #5
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
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.
 
Old 12-18-2003, 06:55 AM   #6
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
If you use pine for your email, then you know how to use pico
 
Old 12-18-2003, 11:39 AM   #7
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
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.
 
Old 12-18-2003, 12:00 PM   #8
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
...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!
 
Old 12-18-2003, 12:10 PM   #9
markjuggles
Member
 
Registered: Nov 2003
Location: Chicago western suburbs
Distribution: Linux Mint
Posts: 75

Rep: Reputation: 15
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
 
Old 12-18-2003, 03:48 PM   #10
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
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.

Last edited by mac_phil; 12-18-2003 at 03:50 PM.
 
Old 12-19-2003, 04:58 AM   #11
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I just tried it - it looks nice. Thanks!
 
Old 12-19-2003, 05:24 AM   #12
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
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.
 
Old 12-19-2003, 05:24 PM   #13
rsheridan6
Member
 
Registered: Mar 2003
Location: Kansas City
Distribution: Debian unstable
Posts: 57

Rep: Reputation: 22
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.
 
Old 12-19-2003, 06:17 PM   #14
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
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
 
Old 12-21-2003, 12:01 PM   #15
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
Emacs. shayan_tabrizi Linux - Software 1 07-23-2004 07:02 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
Emacs HELP! sathyan Programming 6 07-18-2003 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration