Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv987/ftplugin/tex
Modified Files:
brackets.vim
Log Message:
I replaced
IMAP() with Tex_IMAP()
and
IMAP_PutTextWithMovement() with Tex_PutTextWithMovement()
This is a preliminary step before rewriting these two functions.
Index: brackets.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/brackets.vim,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** brackets.vim 9 Dec 2002 20:41:56 -0000 1.4
--- brackets.vim 13 Dec 2002 17:24:31 -0000 1.5
***************
*** 2,7 ****
" Author: Carl Mueller
" (incorporated into latex-suite by Srinath Avadhanula)
! " Last Change: Mon Dec 09 12:00 PM 2002 PST
! " Desciption:
" This ftplugin provides the following maps:
" . <M-b> encloses the previous character in \mathbf{}
--- 2,7 ----
" Author: Carl Mueller
" (incorporated into latex-suite by Srinath Avadhanula)
! " Last Change: Fri Dec 13 12:00 PM 2002 EST
! " Description:
" This ftplugin provides the following maps:
" . <M-b> encloses the previous character in \mathbf{}
***************
*** 84,88 ****
endfunction " }}}
" Tex_MathCal: enclose the previous letter/number in \mathcal {{{
! " Desciption:
" if the last character is not a letter/number, then insert \cite{}
function! Tex_MathCal()
--- 84,88 ----
endfunction " }}}
" Tex_MathCal: enclose the previous letter/number in \mathcal {{{
! " Description:
" if the last character is not a letter/number, then insert \cite{}
function! Tex_MathCal()
***************
*** 93,97 ****
return "\<BS>".'\mathcal{'.toupper(char).'}'
else
! return IMAP_PutTextWithMovement('\cite{«»}«»')
endif
endfunction
--- 93,97 ----
return "\<BS>".'\mathcal{'.toupper(char).'}'
else
! return Tex_PutTextWithMovement('\cite{«»}«»')
endif
endfunction
***************
*** 121,129 ****
endif
let rhs = matchstr(matchedbrackets, char.'\zs.\ze')
! return "\<BS>".IMAP_PutTextWithMovement('\left'.add.char.'«»\right'.add.rhs.'«»')
elseif char == '<'
! return "\<BS>".IMAP_PutTextWithMovement('langle«»\rangle«»')
elseif char == 'q'
! return "\<BS>".IMAP_PutTextWithMovement('\lefteqn{«»}«»')
else
return '\label{«»}«»'
--- 121,129 ----
endif
let rhs = matchstr(matchedbrackets, char.'\zs.\ze')
! return "\<BS>".Tex_PutTextWithMovement('\left'.add.char.'«»\right'.add.rhs.'«»')
elseif char == '<'
! return "\<BS>".Tex_PutTextWithMovement('langle«»\rangle«»')
elseif char == 'q'
! return "\<BS>".Tex_PutTextWithMovement('\lefteqn{«»}«»')
else
return '\label{«»}«»'
|