[Vim-latex-cvs] vimfiles/ftplugin/latex-suite packages.vim,1.8,1.9
Brought to you by:
srinathava,
tmaas
From: <mi...@us...> - 2002-11-15 22:30:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory usw-pr-cvs1:/tmp/cvs-serv30001 Modified Files: packages.vim Log Message: Added Tex_PutPackage() - inserting package from line and updating menus if available Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** packages.vim 10 Nov 2002 18:09:39 -0000 1.8 --- packages.vim 15 Nov 2002 22:30:25 -0000 1.9 *************** *** 4,8 **** " Version: 1.0 " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: nie lis 10 06:00 2002 C " " Description: handling packages from within vim --- 4,8 ---- " Version: 1.0 " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: pi± lis 15 11:00 2002 C " " Description: handling packages from within vim *************** *** 361,364 **** --- 361,374 ---- " }}} + " Tex_PutPackage: inserts package from line {{{ + " (see Tex_package_from_line in envmacros.vim) + function! Tex_PutPackage(package) + if filereadable(s:path."/packages/".a:package) + call Tex_pack_supp(a:package) + call Tex_pack_updateall() + else + exe 'normal i\usepackage{'.a:package."}\<Esc>$" + endif + endfunction " }}} if g:Tex_Menus |