Re: [Vim-latex-devel] Function: Tex_InsertItem
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-10-10 00:04:40
|
Hi Johannes On Thu, 9 Oct 2003, Johannes Tanzler wrote: > Hi, > > the following function inserts "\item", "\item[]", or "\item{}[]" > depending on the environment the cursor currently is in. > There are two mappings: <M-RET> starts a new line before inserting, > "<Leader>it" inserts the item in the current line. Thanks for this. I'm glad to include this in the default latex-suite installation. I made a few changes to this. Its already up on the latest vim-latex cvs tree. So you can check the changes there... The function has been incorporated into the ftplugin/tex/brackets.vim script. I made a few changes to better suit latex-suite (including not using marks to remember position, logic for finding out if the cursor is outside a list environment etc). I also changed the default map to <M-i>. I took away the <M-ret> mapping because it looks like <ret><M-i> is almost as short. Ofcourse, the user can always construct the equivalent of the <M-ret> mapping using the <Plug>ed mapping provided by default. Thanks, Srinath |