LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


View Poll Results: Do you use Vi editor or Emacs editor
Vi editor 54 71.05%
Emacs editor 19 25.00%
What?!?!?!?!? 3 3.95%
Voters: 76. You may not vote on this poll

Reply
  Search this Thread
Old 06-03-2010, 11:47 AM   #1
edwardcode
Member
 
Registered: Apr 2010
Posts: 161

Rep: Reputation: 17
Vi or Emacs


Do you use Vi or Emacs.
 
Old 06-03-2010, 11:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Another vi vs emacs flame-war in the making.......

And yes, I do prefer one above the other, but who really cares. Use the one you like/know.
 
Old 06-03-2010, 11:56 AM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Vi/m, I've done systems administration since the early 90s on Solaris/Windows/Linux/BSD and it's nice to have same editor installed just about everywhere by default and that it supports as many features as I need on any particular machine with no hassles. Emacs is OK, and I'd like to say that I'm of the mind set I'd rather have a tool do one thing exceptionally well rather than do everything at mediocre level, but in all honesty... I like vi better because I've used it ~a lot~ more. Both are fully functional editors with a ton of bells and whistles. Vi/m is more commonly installed by default (in a light configuration), but both are easily installable on just about any operating system with minimal effort. Pick the one that appeals to you more-- Vi/m is mostly just an editor. Emacs is almost a full shell with an editor as a base. Learn either and you'll be better off in the long run

Basic Emacs & Basic Vi/m
 
Old 06-03-2010, 12:37 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Nano, what else? Though if I have to do complex re-arrangement of text, like transposing tabulated columns, I start-up my QL emulator and run The Editor: over 20 years old and still earning its keep!
 
Old 06-03-2010, 01:10 PM   #5
mplike
Member
 
Registered: Jul 2007
Posts: 59

Rep: Reputation: 16
VI with leading votes. Most prefered / obvious choice for any professional.
 
Old 06-15-2010, 09:42 PM   #6
lnblues
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Better yet what do you use when there is no vi available

When I first programed on a UNIX system we used ed
I didn't even know of vi
vi is a dream come true compared to ed
 
Old 06-15-2010, 10:03 PM   #7
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Emacs > Vim for me, but I use nano these day and a real GUI editor when I need to do real work. I like the simplicity of nano, you don't have to know how tu use it, you just have to use it. I am ok in vi, I like some of the features, but I don't nee the point of having to make so many command to do anything. Keyboard shortcut > keyboard commands
 
Old 06-16-2010, 09:04 AM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I prefer either vi(m) or a GUI editor. Depends on my mood and/or circumstances.

Last edited by MTK358; 06-16-2010 at 09:05 AM.
 
Old 06-16-2010, 09:33 AM   #9
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
Nano and the like works for quick tasks - making a change in a config file, for example. But for more involved editing you really need a serious editor.

I haven't used Emacs much at all, but I've read that its syntax highlighting beats Vim's. I wouldn't mind better syntax highlighting.. but speed and efficiency are much more important to me, and nothing beats Vi/m for that. Using an editor like nano feels like moving through molasses compared to Vi. Waiting for the cursor to move to where you want it is torturous when you could just hit a couple keys and make it jump to a precise location.

I also hate how in non-modal editors the text feels fragile.. like you could bump a key or the mouse and everything would disappear. In Vi/m you "unlock" the text when you want to edit it, and "lock" it when you are done.
 
Old 06-16-2010, 11:50 AM   #10
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
That's the eternal vi-emacs war...

Vi(m) vote here!
 
Old 06-16-2010, 11:56 AM   #11
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
Emacs here

I have nothing against Vim, though. I use vim for very quick/small jobs. Emacs for everything else.
 
Old 06-16-2010, 12:42 PM   #12
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
I find VIM easiest to use since I find its command a lot quicker to the hands. Using Nano is also easy but I already grew tired of CTRL-*/ALt-* just like the old edit.com of DOS. I needed something more interesting or brain twisting and more powerful and something that challenges speed but doesn't sacrifice greater functionality. Since I already know VIM I no longer tried to learn EMACS. I don't know which one is better but I prefer VIM.
 
Old 06-16-2010, 04:31 PM   #13
greeneagle
Member
 
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 33

Rep: Reputation: 16
both. emacs > vi as you can spend a whole working day in one session and go faster.

emacs for host systems when it's handy to have many files open and
vi for quick edits and smaller systems

eclipse handy to use as tabbed editor with loads of plugin tools as replacement for emacs ... though it's GUIer and less scriptable. You can do quite alot with any tool with a regexp Find/Replace.
 
Old 06-16-2010, 08:09 PM   #14
damaged_drew
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
What the heck, my first post may as well be in the eternal editor wars.

I'm mostly an emacs person but I use vi for small shell tasks.

But, that's because I'm usually working on markup when I'm in a text editor and I know emacs better then vi. They're both great editors.
 
Old 06-17-2010, 09:19 AM   #15
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
Quote:
Originally Posted by greeneagle View Post
both. emacs > vi as you can spend a whole working day in one session and go faster.
How so? What do you mean by "one session"?

Quote:
emacs for host systems when it's handy to have many files open and vi for quick edits and smaller systems
Have you ever used Vi/m's buffers? I use Vim with many files open every day..
 
  


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 + 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
LXer: Emacs tips: Cross-platform Emacs LXer Syndicated Linux News 0 08-16-2006 11:12 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 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 11:56 PM.

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