vi, emacs or copy con foo.exe?

:smack:

I thought I was somewhere else. Apologies for calling people tards in IMHO.

You’re welcome. One reason I didn’t answer C was that I didn’t know exactly what you were looking for. Search/replace is like regexes in perl (e.g., s/pattern1/pattern2/g <– from memory, so I might have something wrong). Not sure what you meant by “replace some, but not all”.

Which is exactly what vi was designed for. Minimal keystrokes and finger movement to be executed over a 300 baud modem.

I asked my email-pal: “UNIX or Windoze?”. He replied “UNIX”. I said “Ah…me too!”.
I asked my email-pal: “Linux or AIX?”. He said “Linux, of course”. I said “Me too”.
I asked him: “Emacs or vi”. He replied “Emacs”. I said “Me too. Small world.”
I asked him: “GNU Emacs or XEmacs?”, and he said “GNU Emacs”. I said “oh, me too.”
I asked him “GNU Emacs 19 or GNU Emacs 20”? and he said “GNU Emacs 19”. I said “oh, me too.”
I asked him, “GNU Emacs 19.29 or GNU Emacs 19.34”, and he replied “GNU Emacs 19.29”. I said “DIE YOU OBSOLETE NOGOOD SOCIALLY MALADJUSTED CELIBATE COMMIE FASCIST DORK!”, and never emailed him again.

:slight_smile:

I prefer to use vim for all text editing tasks. Yes, I even wrote this post with vim using the It’s All Text! Firefox extension.

You need to update that joke. Nobody uses AIX any more, and Emacs is up to version 23.1.

You forgot to blame my failure to do so on the fact that I use vim.

edt.

You can put in a confirm command, such as 3,15s/search/replace/gc, which will find every instance of “search” between lines 3 and 15, and ask you to confirm that you want to change it to “replace.”

Vim user. One thing I’ve always wanted to find an easy way to compile Latex files in Vim (other than the pdflatex pdflatex bibtex pdflatex pattern every time). Any quick way to do that?

Also, what’s the best way to learn Emacs? Anyone who wants to learn vi can just enter vimtutor in the command prompt (if they have that), what about emacs?

I agree. I have been doing this stuff for 13 years and I never, ever saw the point. I even had to go to a two day class on VI once. After the first hour, I was thinking that it was the single most arcane and useless tool in the history of the universe. I dreaded going back for the second day but I had to. I erased everything from my memory as soon as I could.

1975 called, it wants its computer back.

AIX is the incoming OS at my company along with Linux. The RS6000 platforms are smokin’ hot. HPUX & Solaris are definitely on the downswing, though.

Heh heh heh heh. I’ve dealt with enough antiquated crap to not even doubt that someone’s running crap from '75.

I’ve been doing this only for a year or so longer than you, but I’ve had to use ed to fix a few machines, and vi constantly. I’ve rarely had the luxury of being in the same state, and often country as the machines I’m working on, so a simple editor that doesn’t need meta-keys, mouse input or graphics is a requirement.

Actually, anything that requires a gui sucks by defination. Guis are for doing useless docs for managers to be wrong about, and for the receptionist to play solitare on, real admins are sshed into a console server emulating a vt100. says the guy running Windows7, notetab lite, and far too many putty sessions