Re: editor that has multi file search/replace?
news_at_celticbear.com
Date: 11/16/05
- Next message: Robert Heller: "Re: Linux Super Bowl commercial??"
- Previous message: John Hasler: "Re: command line vs gui"
- In reply to: Dances With Crows: "Re: editor that has multi file search/replace?"
- Next in thread: blmblm_at_myrealbox.com: "Re: editor that has multi file search/replace?"
- Reply: blmblm_at_myrealbox.com: "Re: editor that has multi file search/replace?"
- Reply: Dances With Crows: "Re: editor that has multi file search/replace?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Nov 2005 08:53:41 -0800
Dances With Crows wrote:
> On Wed, 16 Nov 2005 17:15:45 +0100, Michael Heiming staggered into the
> Black Sun and said:
> > In comp.os.linux.misc news@celticbear.com <news@celticbear.com>:
> >> Any recommendations on any free programs for Linux, script/code
> >> editors with syntax hilighting, that allows you to open multiple
> >> files and then can do a find and search/replace on all open files?
> > $ for f in *.txt
> > do
> > vi $f 2>/dev/null << EOF
> >:%s/blah/xyz/g
> >:wq!
> > EOF
> > done
> >
> > Adjust to your taste.
>
> Er, what news@ wanted was something that worked *within* a text editor.
> vim does that too, natch:
>
[..]
DwC, thanks. You're right, and I tried it with the example given in the
help.
I was worried at first, because sometimes I need to find/replace on
about 50 different files, I wasn't about to type "vim file1 file2 file3
etc.". "vim *.php" seemed to work OK.
I may use this method when I need to do things like just change a
directory path on all the files real quick.
> ...start vim and enter ":help 26.3" for the complete reference for this
> and other ways to apply vim commands to many files, windows, or buffers.
> news@ doesn't seem like a vim kind of person, though. Maybe he'd prefer
> emacs?[0]
>
Acually, I like Vim more than Emacs. =) Never got the hang of Emacs.
But, you're partly right. I use Vim CONSTANLY on the server to make
changes here and there to config files, to read READMEs and doc files,
and make quick changes.
But I hate using Vim (or any non GUI editor) when scripting HTML/PHP
files and building sites. I just really like to be able to quickly
scroll around, use a mouse to copy/paste, switch between files quickly.
Oh I know you can do all that with Vim (except the mouse part,) I just
find the GUI easier for me. Especially for things like Zend studio,
where it has auto function complete, marking and bookmarking lines,
quick display of the beginning of end brackets, built-in SQL
connections and other geegaws that just makes 8 hours of scripting a
day easy for me. =)
But I will never give up using Vim for on-the-server file viewing and
quick editing!
> > I'd use perl/sed/awk if you have more then a few dozen files to edit.
>
> AOL on that.
>
I really should learn Perl sometime....
> [0] There are 2 text editors, vim and emacs. Everything else is not
> powerful enough, lacking useful features, and not ubiquitous.
>
Thanks for the reply!!
Liam
- Next message: Robert Heller: "Re: Linux Super Bowl commercial??"
- Previous message: John Hasler: "Re: command line vs gui"
- In reply to: Dances With Crows: "Re: editor that has multi file search/replace?"
- Next in thread: blmblm_at_myrealbox.com: "Re: editor that has multi file search/replace?"
- Reply: blmblm_at_myrealbox.com: "Re: editor that has multi file search/replace?"
- Reply: Dances With Crows: "Re: editor that has multi file search/replace?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|