Vim or Emacs?

Leeroy

Member
Jun 26, 2006
162
0
0
I've finally set up Ubuntu at home, and I'm starting to learn C++. I haven't done any programming since Uni, where I used nether Vi nor Emacs much, but rather a third program I can't remember the name of. It did automatic indentation and syntax highlighting, wich was about al I needed for the level of programming I was doing.

My one memory of trying to use Vi in first year goes something like this:

^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat

But I understand if I took a bit of time to learn how it works, I wouldn't have those problems.

Emacs I remember being just as hard, but in a different way, not being able to figure out how to even save, though i understand there's probably versions of both out there now with nice friendly UIs, and windows-like toolbars.

So my question to those of you who might have experience in both is, if I'm to choose one to pretty much exclusively use, while being pretty unfamiliar with anything outside Windows (Way too long out of uni having nothing to do with Linux), what would be the better one to use, and why?

I'd learn both if I had time, and make my own choice, but I don't have much time in the evenings to play around, and just want to get stuck into the programming.
 

esun

Platinum Member
Nov 12, 2001
2,214
0
0
I would say that Emacs is better suited to someone coming from a Windows background. The reason is that most text editors you're familiar with probably aren't modal like Vim (in Vim there is a command mode and an entry mode, which often confuses people). Emacs isn't modal, so it's generally easier to pick up than Vim. Both are very powerful, and both have lots of documentation, but because you don't have to worry about switching into different modes in Emacs, I would say that it's generally the easier one to learn.
 

aCynic2

Senior member
Apr 28, 2007
710
0
0
This is very subjective. Editors wars are as common and heated as wars on religion, politics, child rearing philosophies, best chocolate, etc.

It's a preference issue. Wat ever works best for you, all others be damned.
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
Use vi. I've come across machines where Emacs is not there, but vi is always available.
 

irishScott

Lifer
Oct 10, 2006
21,562
3
0
Nano FTW!

Simple, easy to use, gets the job done. For programming on any platform, I'd just go with eclipse, but that's me.

Also, IIRC Emacs doesn't support the "backspace" key for some reason. You have to use the "delete" key. Annoying if it's still true.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Nano FTW!

Nano's like notepad, it works for simple, once off edits but I couldn't stand to use it for any real length of time.

Also, IIRC Emacs doesn't support the "backspace" key for some reason. You have to use the "delete" key. Annoying if it's still true.

Works fine here. I was even surprised to find emacs happens to be installed on a few of the servers here. Now I have an idea of something I can remove to free up some space. =)
 

Leeroy

Member
Jun 26, 2006
162
0
0
Well, since Emacs is set up by default with Ubuntu, I'll probably use that for the time being. If I get time in the future I might play around with Vim as well. Thanks for the info, anyway.
 

Onund

Senior member
Jul 19, 2007
287
0
0
I prefer vi, so much so that I've mapped 'hjkl' in Opera to allow me to scroll around webpages.

One thing a co-worker once told me to try and convince me to use emacs was how most Unix prompts accept emacs style cursor shortcuts (ctrl-e, ctrl-a...) so learning emacs has the bonus side effect of teaching you Unix shortcuts.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: Leeroy
Well, since Emacs is set up by default with Ubuntu, I'll probably use that for the time being. If I get time in the future I might play around with Vim as well. Thanks for the info, anyway.
I don't mean to discourage you from using emacs or vi(m) if you want, but there are graphical editors too. Gedit isn't the world's worst editor.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |