[Vim-latex-cvs] vimfiles/ftplugin/latex-suite texmenuconf.vim,1.3,1.4
Brought to you by:
srinathava,
tmaas
From: <mi...@us...> - 2002-11-07 22:25:09
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory usw-pr-cvs1:/tmp/cvs-serv22902 Modified Files: texmenuconf.vim Log Message: texmenuconf.vim: fixed problem with "Edit texrc" menu entry now 1. it works 2. gives message if private texrc doesn't exist 3. command Ttexrc works in non-gui session Index: texmenuconf.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texmenuconf.vim,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** texmenuconf.vim 8 May 2002 17:22:03 -0000 1.3 --- texmenuconf.vim 7 Nov 2002 22:25:05 -0000 1.4 *************** *** 5,9 **** " " Installation: ! " Last Change: ¶ro maj 08 12:00 2002 U " TODO: "============================================================================= --- 5,9 ---- " " Installation: ! " Last Change: czw lis 07 11:00 2002 C " TODO: "============================================================================= *************** *** 58,75 **** exec 'anoremenu 80.110 '.s:mainmenuname.'-sepsuite2- :' endif - if filereadable(s:up_path.'tex/texrc') - function! Tex_texrc() - exec 'split '.s:up_path.'tex/texrc' - lcd - endfunction - com! -nargs=0 TTexrc :call Tex_texrc() - exec 'anoremenu 80.120 '.s:mainmenuname.'Edit\ &texrc<tab>:TexTexrc'. - \' :TexTexrc<CR>' - endif endif " }}} " ============================================================================== --- 58,82 ---- exec 'anoremenu 80.110 '.s:mainmenuname.'-sepsuite2- :' endif + " editing private texrc + exec 'anoremenu 80.120 '.s:mainmenuname.'Edit\ &texrc<tab>:Ttexrc'. + \' :Ttexrc<CR>' endif " }}} + " ============================================================================== + " Edittexrc: split window and show texrc + " ============================================================================== + command! -nargs=0 Ttexrc :call Tex_texrc() + function! Tex_texrc() + if filereadable(s:up_path.'tex/texrc') + exec 'split '.s:up_path.'tex/texrc' + lcd + else + echomsg "Please, create your own texrc by copying system texrc" + \ ." into ftplugin/tex directory" + endif + endfunction " ============================================================================== |