Revision: 1073
http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1073&view=rev
Author: tmaas
Date: 2009-10-02 21:12:54 +0000 (Fri, 02 Oct 2009)
Log Message:
-----------
Description: use xdg-open if available, use gv instead of ghostview
Author: Johann Felix Soden <jo...@gm...>
Modified Paths:
--------------
trunk/vimfiles/ftplugin/latex-suite/texrc
Modified: trunk/vimfiles/ftplugin/latex-suite/texrc
===================================================================
--- trunk/vimfiles/ftplugin/latex-suite/texrc 2009-10-02 21:10:09 UTC (rev 1072)
+++ trunk/vimfiles/ftplugin/latex-suite/texrc 2009-10-02 21:12:54 UTC (rev 1073)
@@ -151,9 +151,15 @@
" Note: If you do this, you need to specify viewers above
" TexLet g:Tex_TreatMacViewerAsUNIX = 1
else
- TexLet g:Tex_ViewRule_ps = 'ghostview'
- TexLet g:Tex_ViewRule_pdf = 'xpdf'
- TexLet g:Tex_ViewRule_dvi = 'xdvi'
+ if executable('xdg-open')
+ TexLet g:Tex_ViewRule_ps = 'xdg-open'
+ TexLet g:Tex_ViewRule_pdf = 'xdg-open'
+ TexLet g:Tex_ViewRule_dvi = 'xdg-open'
+ else
+ TexLet g:Tex_ViewRule_ps = 'gv'
+ TexLet g:Tex_ViewRule_pdf = 'xpdf'
+ TexLet g:Tex_ViewRule_dvi = 'xdvi'
+ endif
" the option below specifies an editor for the dvi viewer while starting
" up the dvi viewer according to Dimitri Antoniou's tip on vim.sf.net (tip
" #225)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|