[Vim-latex-cvs] vimfiles/ftplugin/latex-suite main.vim,1.44,1.45
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-07-26 19:15:58
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv22857 Modified Files: main.vim Log Message: Bug: When latex-suite is packaged as a system wide utility installed in /usr/share/vim/vim61, then the local texrc file in ~/.vim/ftplugin/tex/texrc does not get sourced as claimed in the documentation. (Chris Greenwood) Why: latex-suite tries to source ../tex/texrc from where main.vim resides, which in the case of system wide installations is not ~/.vim/ftplugin/tex/texrc Fix: Just use :runtimepath instead of using s:up_path etc. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** main.vim 25 Jul 2003 01:22:27 -0000 1.44 --- main.vim 26 Jul 2003 19:15:55 -0000 1.45 *************** *** 29,36 **** let s:path = expand('<sfile>:p:h') " set up personal defaults. ! let s:up_path = expand('<sfile>:p:h:h') ! if filereadable(s:up_path.'/tex/texrc') ! exe "so ".s:up_path.'/tex/texrc' ! endif " set up global defaults. exe "so ".s:path.'/texrc' --- 29,33 ---- let s:path = expand('<sfile>:p:h') " set up personal defaults. ! runtime ftplugin/tex/texrc " set up global defaults. exe "so ".s:path.'/texrc' |