[Vim-latex-cvs] vimfiles/ftplugin/latex-suite main.vim,1.53,1.54
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-11-30 09:48:12
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11623 Modified Files: main.vim Log Message: New: A function Tex_MakeMap (not meant to be used by the end-user), which is used to create mappings from an LHS to RHS if a mapping does not exist already for RHS. basically a way to simplify writing the:: if !hasmapto(...) nmap ... endif stuff over and over again. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** main.vim 7 Nov 2003 02:11:50 -0000 1.53 --- main.vim 30 Nov 2003 09:48:08 -0000 1.54 *************** *** 670,673 **** --- 670,680 ---- endfunction " }}} + " Tex_MakeMap: creates a mapping from lhs to rhs if rhs is not already mapped {{{ + " Description: + function! Tex_MakeMap(lhs, rhs, mode, extraargs) + if !hasmapto(a:rhs, a:mode) + exec a:mode.'map '.a:extraargs.' '.a:lhs.' '.a:rhs + endif + endfunction " }}} " source texproject.vim before other files |