On Jul 20, 10:05 am, sinbad <[email protected]> wrote: > why doesn't this work > > :let i=0|'a, 'bg/^/s/^/\<p\=i>/|let i=i+1 > > i was expecting > > <p0> > <p1> > <p2> If you want to use the expression register in substitute, it must be the first one in the pattern.. :help :s\=
Try this instead: :let i=0|'a, 'bg/^/s/^/\="<p" . i . ">"/|let i=i+1 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
