LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2014, 01:06 PM   #1
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware64-15.0
Posts: 375
Blog Entries: 2

Rep: Reputation: 172Reputation: 172
Wink emacs vs vi


"Forget Apple vs. Google. Emacs and Vi have been battling for text-editor supremacy among programmers for 40 years."

http://www.slate.com/articles/techno...ogrammers.html
 
Old 05-10-2014, 01:24 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
A nice article presenting both sides of the argument. I use both depending what I do.
 
Old 05-10-2014, 01:47 PM   #3
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware64-15.0
Posts: 375

Original Poster
Blog Entries: 2

Rep: Reputation: 172Reputation: 172
@sycamorex, I can appreciate your editor adaptability.

I prefer vi over emacs. My first programmer editor was q.exe [1]. Joe's Own Editor [2] is practically the same, and it works on Linux.

[1]
http://www.semware.com/html/tsejrfl.html

[2]
http://joe-editor.sourceforge.net/

Last edited by BenCollver; 05-10-2014 at 02:01 PM. Reason: correct link for q.exe
 
Old 05-12-2014, 03:03 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Emacs is a creation of St IGNUcius.
Vi is a creation of the Devil. VI VI VI = 666, the Number of the Beast.
 
Old 05-12-2014, 05:35 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
Oh no, not again
https://www.goodreads.com/quotes/124...rough-the-mind

vi vs emacs must be one of the oldest extant flame wars
 
Old 05-12-2014, 05:42 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
It's easy: "my way is right." Do it My Way™ or you are Clueless.™ It's just that simple.
 
Old 05-12-2014, 07:48 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
ive never used emacs for no other reason then when i first picked up one of the old RedHat books that they used to sell with the install CDs (oh something around RH 4 or so) it talked about vi bring on all major distros at the time including Unix systems. it talked about pico and nano as well as emacs, but back in the 36.6K days it might not always be easy to go around installing a text editor, but odds were you would find vi so just learn it and use it. so i did and have.

I have used gedit and enjoy it from time to time, but many systems i work with dont have a GUI so vi is my fall back to editor.
 
Old 05-14-2014, 05:06 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, vi has been part of the default install for many versions of *nix, inc Solaris, HP-UX, AIX etc as well as Linux, *BSD etc for many years (possibly decades).
Its also very lightweight.
 
Old 05-14-2014, 07:25 AM   #9
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
nano, ftw!
 
Old 05-14-2014, 10:08 AM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I prefer emacs, because I've learned it very well. I know vi also and use that regularly for quick edits or edits on systems which are limited and don't have emacs. I can't see editing large code files and making extensive changes using vi. I know people do that and it's completely possible; emacs is a bit easier to use ... for me.

This is sort of like the old argument about RPN logic versus Algebraic logic on a calculator. I resisted for years and when I finally broke down to buy an HP calculator because my friends claimed they last and buttons don't break on them; I made a comment that I'd finally have to learn the RPN logic and the sales guy said, "No ... they just came out with some models that use the normal logic." So of course I bought that. My thinking there is, I'm no dummy; sure I can learn RPN logic, but ... why? Just so I can say I can reorient my thinking about a mathematical computation in a different form? Same thing for vi. Yes, I know the basics. But do I need to know all the possible key sequences for commands? Editors like wordpad, notepad, gedit ... those all provide much more common and intuitive manners to manipulate content. Emacs actually does not, but as I've said I happened to learn it well.

What I don't think I like to much are the additions of special variations to specifically edit the sudo permissions or other stuff like that, visudo. You're not running vi, you're running something that contains the vi name but it doesn't use vi commands.
 
Old 05-14-2014, 10:18 AM   #11
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
I use 'ed'

https://www.gnu.org/software/ed/manual/ed_manual.html
 
  


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
How can I get emacs -nw when I call emacs from a terminal but GUI emacs elsewhere? Blackened Justice Linux - Newbie 4 09-08-2011 07:57 AM
emacs + auctex - opening output PDF inside emacs buffer coenvh Linux - Newbie 1 04-29-2010 05:52 AM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 02:41 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM

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

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