Update of /cvsroot/vim-latex/vimfiles/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv987/plugin
Modified Files:
imaps.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: imaps.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** imaps.vim 7 Dec 2002 00:43:41 -0000 1.8
--- imaps.vim 13 Dec 2002 17:24:36 -0000 1.9
***************
*** 5,9 ****
" Description: insert mode template expander with cursor placement
" while preserving filetype indentation.
! " Last Change: Fri Dec 06 04:00 PM 2002 PST
"
" Documentation: {{{
--- 5,9 ----
" Description: insert mode template expander with cursor placement
" while preserving filetype indentation.
! " Last Change: Fri Dec 13 12:00 PM 2002 EST
"
" Documentation: {{{
***************
*** 46,50 ****
" form:
"
! " call IMAP (lhs, rhs, ft)
"
" Some characters in the RHS have special meaning which help in cursor
--- 46,50 ----
" form:
"
! " call Tex_IMAP (lhs, rhs, ft)
"
" Some characters in the RHS have special meaning which help in cursor
***************
*** 53,57 ****
" Example One:
"
! " call IMAP ("bit`", "\\begin{itemize}\<cr>\\item «»\<cr>\\end{itemize}«»", "tex")
"
" This effectively sets up the map for "bit`" whenever you edit a latex file.
--- 53,57 ----
" Example One:
"
! " call Tex_IMAP ("bit`", "\\begin{itemize}\<cr>\\item «»\<cr>\\end{itemize}«»", "tex")
"
" This effectively sets up the map for "bit`" whenever you edit a latex file.
***************
*** 80,84 ****
" Example Two:
" You can use the <C-r> command to insert dynamic elements such as dates.
! " call IMAP ('date`', "\<c-r>=strftime('%b %d %Y')\<cr>", '')
"
" sets up the map for date` to insert the current date.
--- 80,84 ----
" Example Two:
" You can use the <C-r> command to insert dynamic elements such as dates.
! " call Tex_IMAP ('date`', "\<c-r>=strftime('%b %d %Y')\<cr>", '')
"
" sets up the map for date` to insert the current date.
***************
*** 102,106 ****
" IMAP: Adds a "fake" insert mode mapping. {{{
" For example, doing
! " IMAP('abc', 'def' ft)
" will mean that if the letters abc are pressed in insert mode, then
" they will be replaced by def. If ft != '', then the "mapping" will be
--- 102,106 ----
" IMAP: Adds a "fake" insert mode mapping. {{{
" For example, doing
! " Tex_IMAP('abc', 'def' ft)
" will mean that if the letters abc are pressed in insert mode, then
" they will be replaced by def. If ft != '', then the "mapping" will be
***************
*** 122,126 ****
" the previously typed characters and erased and the right hand side is
" inserted
! function! IMAP(lhs, rhs, ft)
let lastLHSChar = a:lhs[strlen(a:lhs)-1]
" s:charLens_<ft>_<char> contains the lengths of the left hand sides of
--- 122,126 ----
" the previously typed characters and erased and the right hand side is
" inserted
! function! Tex_IMAP(lhs, rhs, ft)
let lastLHSChar = a:lhs[strlen(a:lhs)-1]
" s:charLens_<ft>_<char> contains the lengths of the left hand sides of
***************
*** 256,260 ****
exe "let ret = ".lhsHash
! return bkspc.IMAP_PutTextWithMovement(ret)
endwhile
--- 256,260 ----
exe "let ret = ".lhsHash
! return bkspc.Tex_PutTextWithMovement(ret)
endwhile
***************
*** 269,273 ****
" IMAP_PutTextWithMovement: appends movement commands to a text {{{
" This enables which cursor placement.
! function! IMAP_PutTextWithMovement(text)
let s:oldenc = &encoding
--- 269,273 ----
" IMAP_PutTextWithMovement: appends movement commands to a text {{{
" This enables which cursor placement.
! function! Tex_PutTextWithMovement(text)
let s:oldenc = &encoding
|