Hi Joachim,

I'm setting the severity to wishlist because this isn't actually a bug
as this behaviour, under normal circumstances, wouldn't be triggered.
Vim-latexsuite indents after you begin for example an itemize environment
so you won't be at the start of a line. Indenting is good style anyway. ;-)

I've looked at the source and have a workaround for you. Put the
following line into your .vimrc to create the mapping at <M-I> (+Shift)
which should work as intended, though indenting the whole line correctly:

inoremap <script> <silent> <Plug>Tex_xInsertItemBeforeOnThisLine 
<Esc>i<C-r>=Tex_InsertItem()<CR>
augroup LatexSuite
    au LatexSuite User LatexSuiteFileType
                \ imap <buffer> <M-I> <Plug>Tex_xInsertItemBeforeOnThisLine
augroup END

You might perhaps notice the x. That's because of a little bug I found in
envmacros.vim while searching the code for the place where the \item is
generated. This bug causes <M-i> not to be mapped as the script thinks it
was already mapped.

I'll contact upstream about the bug. Please check if my workaround works as
intended and we'll see if we'll include this in another revision. This won't
break compatibility but replacing <M-i> would.

Cheers,
Franz

-- 
Franz Pletz                   \  The Internet treats censorship as
www: http://franz-pletz.org/   \  damage and routes around it.
email: [EMAIL PROTECTED]   \  -- John Gilmore


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to