Re: how to delete all occur of a character

2007-04-09 Thread shawn bright

hey there, thanks for your tips, works great.
sk

On 4/9/07, Tim Chase <[EMAIL PROTECTED]> wrote:

> i have a file ( actually a group of them ) and i need to
> delete the quotation marks in each file, i am sure that vim
> has a tool for this.

For a single file, you want to use

:%s/"//g

For multiple files, you might want:

:set hidden
:argdo %s/"//g
(review your changes)
:wall

(to write all the changes).

If they're funky "windows" quotes, you may have to copy&paste
them, perhaps using control-R followed by whichever register
holds the copied quote (either an asterisk/plus-sign for the
system clipboard, or the double-quote register).

You can read more at

:help :s
:help i_CTRL-R
:help registers


Hope this helps,

-tim




Re: how to delete all occur of a character

2007-04-09 Thread Tim Chase

i have a file ( actually a group of them ) and i need to
delete the quotation marks in each file, i am sure that vim
has a tool for this.


For a single file, you want to use

:%s/"//g

For multiple files, you might want:

:set hidden
:argdo %s/"//g
   (review your changes)
:wall

(to write all the changes).

If they're funky "windows" quotes, you may have to copy&paste 
them, perhaps using control-R followed by whichever register 
holds the copied quote (either an asterisk/plus-sign for the 
system clipboard, or the double-quote register).


You can read more at

:help :s
:help i_CTRL-R
:help registers


Hope this helps,

-tim



Re: how to delete all occur of a character

2007-04-09 Thread Jean-Rene David
* Przemyslaw Gawronski [2007.04.09 09:45]:
> :argdo %s/\"//g | update

" is not special, so no need to quote it.

:argdo %s/"//g | update

-- 
JR


Re: how to delete all occur of a character

2007-04-09 Thread Przemyslaw Gawronski
> vim file1 file2 

> :argdo %s/\"//g
> :xa

Well, better do it this way:

:argdo %s/\"//g | update

Then vim will write only if there were any changes in the file.

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info: http://www.tanren.pl/ phone: +4850151 email: [EMAIL PROTECTED]


Re: how to delete all occur of a character

2007-04-09 Thread Przemyslaw Gawronski
Hi

> i have a file ( actually a group of them ) and i need to delete the
> quotation marks in each file, i am sure that vim has a tool for this.

vim file1 file2 

:argdo %s/\"//g
:xa

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info: http://www.tanren.pl/ phone: +4850151 email: [EMAIL PROTECTED]


how to delete all occur of a character

2007-04-09 Thread shawn bright

lo there,

i have a file ( actually a group of them ) and i need to delete the
quotation marks in each file, i am sure that vim has a tool for this.

sk