Re: [Vim-latex-devel] bug in \item command
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sri...@gm...> - 2006-04-29 07:01:43
|
Hi Javier, On 4/19/06, Javier Rojas <jer...@gm...> wrote: > Anyway, would it be possible that vimlatex, instead of deleting the text > written, simply puts it "as is" if I'm not within any of the itemize, > enumerate or description environments? For example, if my imap were \pota= to, > vimlatex should change it to \item when I'm inside of some of these > environments, and leave \potato if I'm out. > This is actually quite a bit harder than it seems (partly because there Tex_InsertItem() does not know what mapping was responsible for calling it). The best way to get around this might be to define let g:Tex_ItemStyle_list =3D '\item ' and similar for any other environments you use \items for. One thing which we _could_ do is to create yet another setting which makes latex-suite insert a bare \item when no enclosing environment is found... Thanks, Srinath |