[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [VI] Fjernelse af efterfølgende whitespaces?



Jesper Krogh <sslug@sslug> writes:

> Jeg troede egentligt at man kunne lave regex-search-and-replace med
> vi's:
> 
> :1,$s/regex//g
> 
> men det virker ikke rigtigt.
> 
> Jeg har en fil med:
> 
> lidt tekst ( her kommer så 180 spaces som jeg gerne vil have væk )
> 
> hvilket jeg troede jeg kunne gøre med:
> :1,$s/\s*$//g
> 
> Men det virker ikke rigtigt.. 

\s virker ikke i vi men kun i vim (og ligene) du kan bruge [ \t] i
stedet for

-- 
Rasmus Meldgaard

"vi ['vi] subst. -et, -er, -erne
  1. en nordisk, hedensk helligdom"  -Nudansk ordbog


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *