Re: replace number with zero-packed number

2007-05-09 Thread A.J.Mechelynck
Luke Vanderfluit wrote: Hi. I have a csv file that contains a field with a number, say 98. I need to zerofill the fields to be 6 digits. So any field that is say 98, should become 98. Is there an easy way to do this with search and replace? Thanks. Kind regards. There are several ways

RE: replace number with zero-packed number

2007-05-09 Thread Timothy Adams
could put the expr in the middle of the replace string. Is this doable? *tim* -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 4:15 AM To: Luke Vanderfluit Cc: vim@vim.org Subject: Re: replace number with zero-packed number Luke Vanderfluit

Re: replace number with zero-packed number

2007-05-09 Thread Tim Chase
I've never used \=, but I see it only works at the beginning of the substitute string and makes the entire replacement an expression. Is there a way to put it in the middle. For example, I was thinking if the CSV file had other numbers, and only one field should be 0 padded, ex: Blah,