On Fri, 23 Apr 2010, Christian Brabandt wrote:

> On Do, 22 Apr 2010, Tim Chase wrote:
> 
> >   function! FootSearch(fn)
> > [...]
> > Any bugs are yours to keep ;-)  
> 
> This is one I noticed:
> :s/\%(fu.*\)\@<!fn/a:&/g

Gesundheit!

For those following along who aren't regexperts, the 'fn' parameter 
should be referred to as 'a:fn' inside Tim's FootSearch function.  The

\%(fu.*\)\@<!

portion prevents it from replacing the parameter name in the 
function declaration itself.

-- 
Best,
Ben

-- 
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

Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en

Reply via email to