[Vim-latex-cvs] vimfiles/ftplugin/latex-suite texproject.vim,1.3,1.4
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-12-14 09:18:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv8855 Modified Files: texproject.vim Log Message: Changes to account for the changes in Tex_GetMainFileName() Index: texproject.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texproject.vim,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** texproject.vim 25 Jul 2003 01:21:26 -0000 1.3 --- texproject.vim 14 Dec 2003 07:23:55 -0000 1.4 *************** *** 23,28 **** let file = expand("%:p") ! if Tex_GetMainFileName() != '' ! exe 'split '.Tex_GetMainFileName(":p") else exe 'split '.escape(s:path.'/projecttemplate.vim', ' ') --- 23,29 ---- let file = expand("%:p") ! let mainfname = Tex_GetMainFileName() ! if glob(mainfname.'.latexmain') != '' ! exe 'split '.mainfname.'.latexmain' else exe 'split '.escape(s:path.'/projecttemplate.vim', ' ') *************** *** 37,43 **** function! s:Tex_ProjectWrite() ! if expand("%") =~ 'latexmain$' write! ! exe 'source '.Tex_GetMainFileName(":p") q else --- 38,44 ---- function! s:Tex_ProjectWrite() ! if expand("%:e") =~ 'latexmain$' write! ! source % q else *************** *** 64,69 **** " Load project file if exists ! if Tex_GetMainFileName() != '' && Tex_GetMainFileName(':e') == 'latexmain' ! exe 'source '.Tex_GetMainFileName(":p") let g:Tex_ProjectExists = 1 else --- 65,70 ---- " Load project file if exists ! if glob(Tex_GetMainFileName().'.latexmain') != '' ! exe 'source '.Tex_GetMainFileName().'.latexmain' let g:Tex_ProjectExists = 1 else |