* Yegappan Lakshmanan ([email protected]) wrote:
> Hi,
> 
> >
> >        " Lets try with name:line:column
> >        let names =  matchlist( file, '\(.*\):\(\d\+\):\(\d\+\)')
> >        if len(names) == 0
> >                " OK, lets try just name:line
> >                let names =  matchlist( file, '\(.*\):\(\d\+\)')
> >        endif
> >
> 
> The above code using matchlist() can be replaced by the following:
> 
>     let names = split(file, ':')

I think that would break where the filename contained a :

> - Yegappan

Dave
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

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

Reply via email to