[Vim-latex-cvs] SF.net SVN: vim-latex: [1011] trunk/vimfiles/ftplugin/latex-suite
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2006-04-28 16:41:50
|
Revision: 1011 Author: srinathava Date: 2006-04-28 09:41:47 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/vim-latex/?rev=1011&view=rev Log Message: ----------- Bug: when 'filetype indent off' then pressing <M-i> at the beginning of a line inserts the \item one character to the right of the first character on the line. (Joachim Breitner) Why: We had mapped the insert item thing to <Esc>a... which doesn't get the cursor back to the same position at the beginning of a line. Fix: Just avoid going into normal mode in the first place (Franz Pletz) Modified Paths: -------------- trunk/vimfiles/ftplugin/latex-suite/envmacros.vim trunk/vimfiles/ftplugin/latex-suite/version.vim Modified: trunk/vimfiles/ftplugin/latex-suite/envmacros.vim =================================================================== --- trunk/vimfiles/ftplugin/latex-suite/envmacros.vim 2006-04-17 23:50:10 UTC (rev 1010) +++ trunk/vimfiles/ftplugin/latex-suite/envmacros.vim 2006-04-28 16:41:47 UTC (rev 1011) @@ -605,6 +605,7 @@ endif let i = i + 1 endwhile + endif endif " If nothing before us managed to create an environment, then just " create a bare-bones environment from the name. @@ -940,9 +941,8 @@ endfunction " }}} " Tex_SetItemMaps: sets the \item inserting maps for current buffer {{{ -" Description: -inoremap <script> <silent> <Plug>Tex_InsertItemOnThisLine <Esc>a<C-r>=Tex_InsertItem()<CR> +inoremap <script> <silent> <Plug>Tex_InsertItemOnThisLine <C-r>=Tex_InsertItem()<CR> inoremap <script> <silent> <Plug>Tex_InsertItemOnNextLine <ESC>o<C-R>=Tex_InsertItem()<CR> function! Tex_SetItemMaps() Modified: trunk/vimfiles/ftplugin/latex-suite/version.vim =================================================================== --- trunk/vimfiles/ftplugin/latex-suite/version.vim 2006-04-17 23:50:10 UTC (rev 1010) +++ trunk/vimfiles/ftplugin/latex-suite/version.vim 2006-04-28 16:41:47 UTC (rev 1011) @@ -24,7 +24,7 @@ " "stabilize" that version by releasing a few pre-releases and then " keep that as a stable point. function! Tex_Version() - return "Latex-Suite: version 1.8.17" + return "Latex-Suite: version 1.8.18" endfunction com! -nargs=0 TVersion echo Tex_Version() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |