From: Mikolaj M. <mi...@wp...> - 2003-02-27 17:57:43
I have got report about not sourcing package files
under windows. I found place and this is not working
also for me (under windows, under Linux everything is OK).
lines from 216-226 packages.vim:
exec "normal! /\[\<CR>lv/\]\<CR>h\"ay"
let options = @a
else
let options = ''
endif
" The following statement puts the stuff between the { }'s of a
" \usepackage{stuff,foo} into @a. Do not use matchstr() and the like
" because we can have things split across lines and such.
exec "normal! /{\<CR>lv/}\<CR>h\"ay"
Solution is to remove h.
But I would like to know if this is working on other machines before
commiting.
Mikolaj
From: Benji F. <be...@me...> - 2003-02-27 18:31:55
Mikolaj Machowski wrote:
> I have got report about not sourcing package files
> under windows. I found place and this is not working
> also for me (under windows, under Linux everything is OK).
>
> lines from 216-226 packages.vim:
>
> exec "normal! /\[\<CR>lv/\]\<CR>h\"ay"
> let options = @a
> else
> let options = ''
> endif
>
> " The following statement puts the stuff between the { }'s of a
> " \usepackage{stuff,foo} into @a. Do not use matchstr() and the like
> " because we can have things split across lines and such.
> exec "normal! /{\<CR>lv/}\<CR>h\"ay"
>
> Solution is to remove h.
> But I would like to know if this is working on other machines before
> commiting.
How about
exec "normal! /{\<CR>\"ayi}"
instead? Besides being shorter, it works {
even here
}
I think.
--Benji
From: Mikolaj M. <mi...@wp...> - 2003-02-28 20:21:37
On Thu, Feb 27, 2003 at 01:30:26PM -0500, Benji Fisher wrote:
> > exec "normal! /{\<CR>lv/}\<CR>h\"ay"
> >
> >Solution is to remove h.
> >But I would like to know if this is working on other machines before
> >commiting.
> How about
> exec "normal! /{\<CR>\"ayi}"
> instead? Besides being shorter, it works {
> even here
> }
> I think.
Old version worked also but there was problems with cutting letters.
Your solution works and is less expensive.
m.