A script that will do what you want and more is "Visual Block Commands" by our own Dr. Chip. You can find it at: http://mysite.verizon.net/astronaut/vim/ index.html#VimFuncs . Try it, you'll like it.
Kevin

On Aug 29, 2006, at 11:24 AM, Walter Cazzola wrote:

Dear Vim Experts,
I'm looking for search and replace expressed on columns instead of rows.
Something like:

  :15,$s/foo/bar/gc

where 15 is the first column to consider and $ (in this case) is the
last column (whose value will change from row to row).

I've googled a little and looked in the vim docs but nothing happened
but I don't think (or hope ;-)) that this is impossible.

Any hints?

thanks a lot
Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637 Fax: +39 010 353 6699 · · · --------------------------- · · · --------------------------- · · ·
               ... recursive: adjective, see recursive ...
· · · --------------------------- · · · --------------------------- · · ·

Reply via email to