Thread: [Vim-latex-devel] question about opening xdvi in vim-latex
Brought to you by:
srinathava,
tmaas
From: John B. <jb...@gm...> - 2009-04-26 00:31:06
|
Hi guys I recently installed the latest svn version of vim-latex and I am using texlive 2008. It is a great software. However I personally have a weird problem stopping me from enjoying it: It is about my xdvi in texlive2008. Every time I open it in a terminal I have to wait for quite a bit long time, and receive the folloing warning message: Warning: Missing charsets in String to FontSet conversion So I add an alias alias xdvi = "LC_ALL=C xdvi " in my .bashrc. LC_ALL=C helps me to launch xdvi in terminal instaneously. While for enjoying vim-latex, especially its forward search I have to make some modification to launch xdvi by pressing \ls. However, I found that if I write let g:Tex_ViewRule_dvi = 'LC_ALL=C xdvi ' in my .vimrc and pressing \ls I got thousands of error messages on the screen. I could not paste the messages out since everytime when I tried to select them and copy them, they disappered. I guess the problem is the updated compiler.vim, since I did not met this problem in the older version of vim-latex. So I tried to replace all words xdvi in .vim/ftplugin/latex-suite/compiler.vim by LC_ALL=C xdvi. but it does not work.:( So, could anybody kindly help me on this issue? If anyone can explain why xdvi spends so long time to launch, it would be the best. Thank you :-) John |
From: Ted P. <te...@te...> - 2009-04-26 00:46:40
|
> let g:Tex_ViewRule_dvi = 'LC_ALL=C xdvi ' Have you tried something like... bash -c 'LC_ALL=C xdvi' ? That is, let g:Tex_ViewRule_dvi = 'bash -c "LC_ALL=C xdvi \$1" xdvi ' You might have to play around with the quoting, but in principle I think it would work... <?> --Ted -- Ted Pavlic <te...@te...> Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS. |
From: John B. <jb...@gm...> - 2009-04-26 01:07:38
|
Dear Ted: yes I tried, it really works, however... by such configuration I cannot get the forward search.... :( Thank you very much for spending time on my question. Peng On Sun, Apr 26, 2009 at 12:46 AM, Ted Pavlic <te...@te...> wrote: >> let g:Tex_ViewRule_dvi = 'LC_ALL=C xdvi ' > > Have you tried something like... > > bash -c 'LC_ALL=C xdvi' > > ? That is, > > let g:Tex_ViewRule_dvi = 'bash -c "LC_ALL=C xdvi \$1" xdvi ' > > You might have to play around with the quoting, but in principle I think > it would work... <?> > > --Ted > > > -- > Ted Pavlic <te...@te...> > > Please visit my ALS association page: > http://web.alsa.org/goto/tedpavlic > My family appreciates your support in the fight to defeat ALS. > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |
From: Ted P. <te...@te...> - 2009-04-26 02:32:44
|
> yes I tried, it really works, however... by such configuration I > cannot get the forward search.... If I recall correctly, forward search passes the line number to xdvi via parameters. The line I suggested... >> let g:Tex_ViewRule_dvi = 'bash -c "LC_ALL=C xdvi \$1" xdvi ' Only deals with one parameter. Try replacing the \$1 with \$* or \$@ (with some quoting to deal with spaces). --Ted >> >> You might have to play around with the quoting, but in principle I think >> it would work...<?> >> >> --Ted >> >> >> -- >> Ted Pavlic<te...@te...> >> >> Please visit my ALS association page: >> http://web.alsa.org/goto/tedpavlic >> My family appreciates your support in the fight to defeat ALS. >> >> ------------------------------------------------------------------------------ >> Crystal Reports- New Free Runtime and 30 Day Trial >> Check out the new simplified licensign option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Vim-latex-devel mailing list >> Vim...@li... >> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel >> > -- Ted Pavlic <te...@te...> Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS. |
From: John B. <jb...@gm...> - 2009-04-26 04:30:20
|
Dear Ted: I appreciate you very much for your kindly help. However it is regretful that it did not work for me. But I just found an alternative way for this issue. I state it out so that maybe some other help can benefit from it. Put the following line :map \ld :execute '!LC_ALL=C xdvi -s 4 -sourceposition ' . line(".") . expand("%") . " " . expand(Tex_GetMainFileName(':r')) . ".dvi &"<CR><CR> into .vimrc file. So that we can use \ld instead of \ls I guess this is basically the vim-latex did for \ls.... I learned this from http://vim.wikia.com/wiki/Vim_can_interact_with_xdvi by which one can also defines the inverse search( which I never succeeded...) Thank you Ted ;-) Thank you. Have a nice weekend. On Sun, Apr 26, 2009 at 2:32 AM, Ted Pavlic <te...@te...> wrote: >> yes I tried, it really works, however... by such configuration I >> cannot get the forward search.... > > If I recall correctly, forward search passes the line number to xdvi via > parameters. The line I suggested... > >>> let g:Tex_ViewRule_dvi = 'bash -c "LC_ALL=C xdvi \$1" xdvi ' > > Only deals with one parameter. Try replacing the \$1 with \$* or \$@ > (with some quoting to deal with spaces). > > --Ted > > >>> >>> You might have to play around with the quoting, but in principle I think >>> it would work...<?> >>> >>> --Ted >>> >>> >>> -- >>> Ted Pavlic<te...@te...> >>> >>> Please visit my ALS association page: >>> http://web.alsa.org/goto/tedpavlic >>> My family appreciates your support in the fight to defeat ALS. >>> >>> ------------------------------------------------------------------------------ >>> Crystal Reports- New Free Runtime and 30 Day Trial >>> Check out the new simplified licensign option that enables unlimited >>> royalty-free distribution of the report engine for externally facing >>> server and web deployment. >>> http://p.sf.net/sfu/businessobjects >>> _______________________________________________ >>> Vim-latex-devel mailing list >>> Vim...@li... >>> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel >>> >> > > -- > Ted Pavlic <te...@te...> > > Please visit my ALS association page: > http://web.alsa.org/goto/tedpavlic > My family appreciates your support in the fight to defeat ALS. > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |