[Vim-latex-cvs] vimfiles/ftplugin/latex-suite packages.vim,1.42,1.43
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-12-14 08:32:50
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv8691 Modified Files: packages.vim Log Message: A few small updates to account for the change in Tex_GetMainFileName() Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** packages.vim 7 Nov 2003 02:11:50 -0000 1.42 --- packages.vim 14 Dec 2003 07:22:16 -0000 1.43 *************** *** 75,81 **** --- 75,83 ---- endif " Return full list of dictionaries (separated with ,) for package in &rtp + call Tex_Debug("searching for ".a:package." in dictionaries/ in &rtp", "pack") let dictname = Tex_FindInRtp(a:package, 'dictionaries', ':p') if dictname != '' exe 'setlocal dict+=' . dictname + call Tex_Debug('setlocal dict+=' . dictname, 'pack') if g:Tex_package_supported !~ a:package let g:Tex_package_supported = g:Tex_package_supported.','.a:package *************** *** 114,122 **** " Find out which file we need to scan. ! if Tex_GetMainFileName() != '' ! let fname = Tex_GetMainFileName(':p:r') ! else ! let fname = expand('%:p') ! endif " If this is the same as last time, don't repeat. if !a:force && exists('s:lastScannedFile') && --- 116,121 ---- " Find out which file we need to scan. ! let fname = escape(Tex_GetMainFileName(':p'), ' ') ! " If this is the same as last time, don't repeat. if !a:force && exists('s:lastScannedFile') && *************** *** 144,151 **** " Now for each package find out if this is a custom package and if so, ! " scan that as well. We will use the ':wincmd f' command in vim to let vim ! " search for the file paths for us. We open up a new file, write down the ! " name of each package and ask vim to open it for us using the 'gf' ! " command. " " NOTE: This while loop will also take into account packages included --- 143,148 ---- " Now for each package find out if this is a custom package and if so, ! " scan that as well. We will use the ':find' command in vim to let vim ! " search through the file paths for us. " " NOTE: This while loop will also take into account packages included *************** *** 179,182 **** --- 176,182 ---- endif + " Split this window in two. The packages/files being found will open + " in this new window and we also need not bother with files being + " modified etc. split *************** *** 299,311 **** " easy available through <F5> and <F7> shortcuts function! Tex_ScanForPackages(fname, ...) - let pos = line('.').' | normal! '.virtcol('.').'|' ! let currfile = expand('%:p') call Tex_Debug('currfile = '.currfile.', a:fname = '.a:fname, 'pack') let toquit = 0 if a:fname != currfile - - call Tex_Debug('splitting file', 'pack') exe 'split '.a:fname let toquit = 1 --- 299,308 ---- " easy available through <F5> and <F7> shortcuts function! Tex_ScanForPackages(fname, ...) let pos = line('.').' | normal! '.virtcol('.').'|' ! let currfile = escape(expand('%:p'), ' ') call Tex_Debug('currfile = '.currfile.', a:fname = '.a:fname, 'pack') let toquit = 0 if a:fname != currfile exe 'split '.a:fname let toquit = 1 *************** *** 441,444 **** --- 438,442 ---- if toquit + call Tex_Debug("quitting from ".bufname('%'), "pack") q endif *************** *** 659,663 **** augroup LatexSuite au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug('packages.vim: Catching LatexSuiteFileType event') | \ call Tex_pack_updateall(0) augroup END --- 657,661 ---- augroup LatexSuite au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug('packages.vim: Catching LatexSuiteFileType event', 'pack') | \ call Tex_pack_updateall(0) augroup END |