PDA

View Full Version : VI, VIm, or EMACS?


knightfoo
2003-09-27, 00:45 AM
No public discussion among Linux geeks is complete without a holy war between the editors. C'mon, vote! Which will be the one true editor? ;)

[keep the flames to a minimum please]

-knightfoo

QT
2003-09-27, 00:51 AM
I think the choices should've been:

1. VI
2. VI
3. VI
4. uhm...VI.

:D

knightfoo
2003-09-27, 00:51 AM
Oh you use that "six" editor. ;)

That's cool though, moded editors are nice for those of us with a normal amount of fingers and joints. :D

-knightfoo

QT
2003-09-27, 00:55 AM
Originally posted by knightfoo
Oh you use that "six" editor. ;)

That's cool though, moded editors are nice for those of us with a normal amount of fingers and joints. :D

-knightfoo

Old school....;)


and what's with this Emacs stuff..... :p

altp
2003-09-27, 06:33 AM
emacs.

a quick game of tetris while i'l working on something. not having to remember to hit ESC+: before you do a command. not having to remember to his "i" befor eyou can actually use you're editor.

Plus, tramp is real nice for editing files across servers.

Altp.

knightfoo
2003-09-27, 09:55 AM
Originally posted by altp
emacs.

a quick game of tetris while i'l working on something. not having to remember to hit ESC+: before you do a command. not having to remember to his "i" befor eyou can actually use you're editor.

Plus, tramp is real nice for editing files across servers.

Altp.

I think that is what annoys me about EMACS. It isn't just a text editor .. all it needs is a kernel and it could be its own OS. I use vi and vim because if you know those two, you will never be without a text editor. Even a base install of FreeBSD has vi on it (but no bash .. go figure).

-knightfoo

altp
2003-09-27, 10:39 AM
I agree, that for that reason VI is the better editor to learn. Its everywhere.

I just prefer using emacs. Actually, on my last dedicated server, emacs wasn't installed when i got it and i just left it with vi.

Knowing both is important, I just think vi sucks for everyday use ;-)

Altp.

dhigbee
2003-09-27, 11:20 AM
VI, VI, and yes VI.

How's this for old school, I used to write my web pages with vi. Before all the html editors were really even around.

Hum, am I showing my age?

Don

knightfoo
2003-09-27, 11:25 AM
Nah, I write web pages in vim. Most of them are in php or perl, so an HTML editor wouldn't do me much good anyway.

-knightfoo

Ron
2003-09-27, 11:45 AM
emacs. Simply because that's what I started with and got used to it.

OOagent137
2003-09-30, 02:52 AM
Pico anyone? I use this to write my java.

knightfoo
2003-09-30, 06:54 AM
Originally posted by OOagent137
Pico anyone? I use this to write my java.

PICO has never really been popular among the open source community. It is bundled with PINE and is heavily restricted due to the UW license. UW does not allow modified binaries to be distributed, so it is difficult for a lot of distributions to provide PINE/PICO and still conform to their own filesystem standards. If you ever use a Debian system you will notice there are no binary packages for PINE .. you must download the source and build your own packages.

Licensing aside, PICO has some very nasty bugs and unpredictable behavior. One such bug is that PICO will word wrap a file after so many characters even if you tell it not to .. you could easily mess up your system without even realizing (like word-wrapping your passwd/shadow file, or something else equally important).

-knightfoo

OOagent137
2003-09-30, 16:38 PM
Hmm, my problem with vim is it doesn't work correctly. It's a hard bug to describe, but basically, whenever I open a file in VI I may see text from whatever was on my console screen before I opened it. Or, after I exit, I may see the text that was last there, even though in reality it's not (b/c I can type over it and it won't be a problem or effect any commands). That sort of weird I know....but I've seen it on multiple systems.

brent
2003-09-30, 18:32 PM
What about joe???? Am I the only person on the planet that uses it? :)

spoon
2003-10-05, 12:19 PM
I use vi because about 8 years ago, someone sent me a quick little tutorial on it and after 20 minutes I knew pretty much everything I needed to know about it. Modal editting is awesome, esp when dealing with large source files. VIM managed to add in all the extra stuff that EMACS had that might have caused me to switch over.

brent: no, I've got a friend who uses joe religiously. So that makes 2 of your freaks out there at least (not counting Jonathan, the guy who wrote it :) ).

OOagent: sounds like you got some funky terminal settings. Before opening up VI, try running this command "export TERM=vt100" and see if that helps clear things up.