LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2006, 01:27 AM   #1
MrVahn
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 77

Rep: Reputation: 15
vi and emacs question


I have a very simple question about these two editors. I know that this might start a religous war, but I hope it will not. I just want to know the features of the two. What I know about them is that both of them are editors, and I don't really know what an editor does. Emacs has a lot of functionality. It can send email, surf the web etc etc. and I wonder if vi can also do this. Well, the real question is that which one is better in terms of features? As of now I sort of prefer Emacs over Vi because it has a lot to offer instead of just being a simple editor, but if Emacs is really that great and functional, then why are there too many Vi users?
 
Old 03-05-2006, 01:32 AM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Why not just the one that best meets your needs? Choosing option A rather than B because "A has more features" only makes sense if those features are things that you actually use. Overall, just use the tool that you think best suits the job at hand.....
 
Old 03-05-2006, 02:13 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I started out with vi and it's the one I tend to stick by. Tried learning emacs but tbh couldn't get my head round all the ctrl shortcuts. Vi just seems more straight forward as an editor and I don't need much more functions than editing.

That's my experience anyway.
 
Old 03-05-2006, 08:13 AM   #4
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Linux Mint
Posts: 116

Rep: Reputation: 16
I agree with dive, the ctrl commands can get very confusing in emacs. That was the reason I stuck with vi. Vi is a lot more powerful than it might at first seem.

As far as the extra features are concearned, you have to ask yourself if they are worth it for you. I think there are programs better better suited to email and browsing even in a terminal.

Either way these are both powerful editors, I don't think there is a "right or wrong" choice.

Editors are not a glorified version of the Windows note pad. Here are some of the features:
  • syntax hilighting
  • powerful search/replace capability using regular expressions (very powerful wildcards)
  • you can "read" a commands output right into a file
  • folding (collapse a range of text into one line)

jer
 
Old 03-05-2006, 10:06 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
On the other hand, emacs does give you a pseudo window on a VT terminal emulator (like Linux's tty) so you can "kind of" use a window from a terminal. This can be very nice when, for example, your X system is broken for some reason. Or if you're one of those people who insist that "real geeks don't do windows," but you still want to, for example, display different parts of a piece of code on your screen at the same time.

I first started using emacs on Multics systems in the 60's, but, actually, I moved on to "better" editors when Windows 3.1 became available in the 70's. On Linux I tend to use the xemacs implimentaion of emacs because I, too, find it hard to remember all those mutiple control sequences. (That dispite, almost half a century ago, learning LISP just so I could write emacs extensions.)

Last edited by PTrenholme; 03-05-2006 at 10:07 AM.
 
Old 03-06-2006, 04:39 AM   #6
MrVahn
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
So vi is much easier than emacs? I don't really care if emacs can browse the web and send mail and whatnot because I like firefox for the job. But I find emacs really interesting. I have heard somoene say that emacs is "A way of living".
 
Old 03-06-2006, 10:02 AM   #7
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Linux Mint
Posts: 116

Rep: Reputation: 16
I found vi easier, but I had also used modal editors before. Some people don't like having to switch modes to do stuff.

Emacs, the programming laguage Lisp, and AI have a close relationship; this could be one of the influences for it being a way of life. An editor is a way of getting things done, a "way of work".

I chose vi a long time ago, it influences how I get things done. I still like to learn, and emacs is prevelent in the GNU environment (for example, it is the editor that is emulated by default in readline -- the program that interprets key presses at the command line).

Complicated ctrl sequences are also unavoidable, I use screen to provide mutiple sessions in one terminal window. It really depends on how long it takes to digest all of the stuff and keep up with the current innovations. I've been using Linux for over five years, some days I still feel like a total newb. I still rely on Windows to get some stuff done. But it's great learning.

jer

Last edited by jerril; 03-06-2006 at 10:04 AM.
 
Old 03-07-2006, 01:50 AM   #8
MrVahn
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
I see. The only editor that I use is Crimson Editor, a very compact and simple editor. I use it to do my java programming. It is a very simple and lightweight editor. Sometimes I open stuff with it to see its code lol. Other than that, I do not know any other editor.
 
Old 03-07-2006, 02:43 AM   #9
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Linux Mint
Posts: 116

Rep: Reputation: 16
MrVahn

Crimson Editor looks like a decent editor, I'll try to remember to check it out the next time I boot up in Windows.

jer
 
Old 03-09-2006, 02:59 AM   #10
MrVahn
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
Yes it is quite decent but some ppl say that it is useless in large projects. I do not do large projects yet so I'll stick to it as a learning tool
 
  


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
Emacs Clipboard Question bleedingturnips Linux - Software 1 08-31-2005 01:10 AM
Emacs question tuananhbirm Linux - General 6 07-20-2005 02:55 AM
emacs question greg108 Programming 3 09-25-2004 09:16 AM
emacs question Midknight Programming 2 02-03-2003 11:33 PM
emacs question twk Linux - Software 0 05-23-2002 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:25 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