Re: Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Charles E Campbell Jr
On 5/15/06, Popovic Dan <[EMAIL PROTECTED]> wrote: > I have a question on replacing text. I have a simple text-file with a table of results like this: > > -- > Mosbach - KSF 2 2 : 6 > > Zimmer- Pfrommer 0 > Mueller

Re: Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Popovic Dan
icht- > Von: "Christoph Nodes" <[EMAIL PROTECTED]> > Gesendet: 15.05.06 16:14:53 > An: "Popovic Dan" <[EMAIL PROTECTED]> > CC: vim@vim.org > Betreff: Re: Replace & Insert: Filling in whitespaces till position 15 > you could try something like

Re: Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Popovic Dan
Hello Benji, thank you for your suggestion. The script of Dr.C is seems to be a very powerful tool for various align-tasks. I tested it for half an hour and I'm really enlighted. For those who are interested, I'll give a short report on what I tried with my sample file (see below) It is possib

Re: Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Christoph Nodes
you could try something like :%s/^\s*\(\w\+\)\s*-\s*\(\w\+\)/\=submatch(1).strpart(' ', strlen(submatch(1))).' - '.submatch(2)/ (all in one line) :help sub-replace-special On 5/15/06, Popovic Dan <[EMAIL PROTECTED]> wrote: Hello dear list-members, I have a question on replacing

Re: Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Benji Fisher
On Mon, May 15, 2006 at 03:19:46PM +0200, Popovic Dan wrote: > Hello dear list-members, > > I have a question on replacing text. I have a simple text-file with a table > of results like this: > > -- > Mosbach - KSF 2 2 : 6 >

Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Popovic Dan
Hello dear list-members, I have a question on replacing text. I have a simple text-file with a table of results like this: -- Mosbach - KSF 2 2 : 6 Zimmer- Pfrommer 0 Mueller - Kargoll 1 Schwab-