Re: Extended version of file:line script

2011-01-03 Thread Dr. David Alan Gilbert
* ZyX (zyx@gmail.com) wrote: > Reply to message «Re: Extended version of file:line script», > sent 17:02:09 03 January 2011, Monday > by Dr. David Alan Gilbert: > > > Why - what does that do for me? > For you - nothing, at least now. It just makes your script i

Re: Extended version of file:line script

2011-01-03 Thread ZyX
Reply to message «Re: Extended version of file:line script», sent 17:02:09 03 January 2011, Monday by Dr. David Alan Gilbert: > * Christian Brabandt (cbli...@256bit.org) wrote: > > Hi > > > > On Mo, 03 Jan 2011, Dr. David Alan Gilbert wrote: > > &g

Re: Extended version of file:line script

2011-01-03 Thread Dr. David Alan Gilbert
* Christian Brabandt (cbli...@256bit.org) wrote: > Hi > > On Mo, 03 Jan 2011, Dr. David Alan Gilbert wrote: > > if (names[3]) > > exe "normal " . names[3] . "|" > > endif > > It probably doesn't matter in this case, but in general you should

Re: Extended version of file:line script

2011-01-03 Thread Dr. David Alan Gilbert
* Yegappan Lakshmanan (yegapp...@gmail.com) 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(

Re: Extended version of file:line script

2011-01-03 Thread Christian Brabandt
Hi On Mo, 03 Jan 2011, Dr. David Alan Gilbert wrote: > if (names[3]) > exe "normal " . names[3] . "|" > endif It probably doesn't matter in this case, but in general you should always use :normal! regards, Christian -- You received this

Re: Extended version of file:line script

2011-01-02 Thread Yegappan Lakshmanan
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 mat

Extended version of file:line script

2011-01-02 Thread Dr. David Alan Gilbert
Hi Victor, (and vim list cc'd) I posted a script similar to your file:line script to v...@vim.org and Christian Brabandt was good enough to point me at your file:line plugin here: http://www.vim.org/scripts/script.php?script_id=2184 My script also deals with file:line: and file:line:column and