Friday, July 20, 2012

Re: Remove spaces and line breaks and make single line wihtout spaces

On 20/07/12 09:19, vicky b wrote:
> HI,
>
> I dint find any specific solution for my problem even after much of
> googling
>
> i have following line
>
> <?xml version="1.0" encoding="UTF-8"?><SupportItem>
> <ItemInfo>
> <Name>First Name</Name>
> <Type>INPUTEXT</Type>
> <Value></Value>
> <Mandatory>true</Mandatory>
> <Description></Description>
> <ImagePath></ImagePath>
> <MaxLength>100</MaxLength>
> </ItemInfo>
> </SupportItem>
>
> i want to have it as below all line merged as single line and no spaces
> at all
>
> <?xmlversion="1.0"encoding="UTF-8"?><SupportItem><ItemInfo><Name>FirstName</Name><Type>INPUTEXT</Type><Value></Value><Mandatory>true</Mandatory<Description></Description><ImagePath></ImagePath><MaxLength>100</MaxLength></SupportItem>
>
> --
> /*Thanks & Regards
> Vickyb*
>
> /

You shouldn't have used Google; use the help (Vim is the only program I
know which has a help worth using): see
:help
:help help
:help helphelp

This sounds like a school exercise, and not very useful at that; but yes
it is possible: see
:help :s
:help /character-classes

Best regards,
Tony.
--
"Text processing has made it possible to right-justify any idea, even
one which cannot be justified on any other grounds."
-- J. Finnegan, USC.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: