I am using vim 7.3.35 with the vim-latexsuite on ubuntu. After googling around I managed to setup forward/inverse search with
xdvi by adding the following to my
let g:Tex_CompileRule_dvi = 'latex --interaction=nonstopmode --src-specials $*' let g:Tex_ViewRuleComplete_dvi = 'xdvi -s 8 -keep -editor "gvim --servername vimlatex --remote +\%l \%f" $* &'
(I run vim on
tex files as
vim --servername vimlatex myfile.tex so that I do not get different instances of vim on the inverse search)
The above lines work fine except for two cases:
- If at any part of the path to my
texfile there is a space character
- If my
texfile name contains a dot
In the fist case, if I compile the file
"a b.tex" and try to view it with
xdvi I will get the error:
xdvi.bin: Error: Unrecognized option `b.tex'
In the second case, it will compile but when
xdvi opens I get a warning dialog:
No references to source file "myfile.tex" in DVI file.
I assume it has to do with the way those lines in my
.vimrc are written. Any ideas how I could work around that so that I can use space and dots in my paths?