I have installed the Vim-LaTeX plugin, which is great for editing LaTeX documents in Vim. However, I have one problem with viewing the output file.
The tutorial says to use the \lv
command. However, when I try that, it tries to open foo.dvi
with evince
, which happens to fail spectacularly:
This is strange, though, since the docs say that xdvi
should be the default DVI viewer in the first place. Anyway, I tried setting it as the default:
:let g:Tex_ViewRule_dvi = 'xdvi'
This had absolutely no effect. When I tried
:!xdvi foo.dvi
it worked perfectly, but I would prefer the easier \lv
shortcut instead.
How can I solve this problem? I'm running Ubuntu 14.04 with Vim 7.4.
.dvi
file in nautilus? Maybe the MIME associations are messed up... (just a shot in the dark, I use LaTeX-Box and not Vim-LaTeX so I can't check).mimeopen
and that fixed it. Thanks! (you can add that as an answer, so I can accept it)