Re: [Vim-latex-devel] Viewer doesnt start in Ubuntu Dapper Drake
Brought to you by:
srinathava,
tmaas
From: Sebastian M. <seb...@un...> - 2006-03-24 09:23:41
|
Am Donnerstag, den 23.03.2006, 11:04 -0800 schrieb Srinath Avadhanula: > 2. If none of this gives you any new information, you can try as a last > resort looking at the Tex_ViewLaTeX() function in > ~/.vim/ftplugin/latex-suite/compiler.vim. This is the function > invoked when you type \lv. Bad news: wrong CWD was wrong .. I looked into the function and put some new debug statements there to be sure what the cwd is. There was no problem at all. Good news: Problem is fixed. :-) Here a small log of my analysis: When i opened the file in nautilus (the gnome file explorer) with "GVim Text Editor", I had _two_ buffers in vim. One with "~/path/file.tex" and one with "file:///home/me/path/file.tex". Dont know why. But starting a file from nautilus with my homebrewn command "gvim", i had only one buffer, and surprisingly "\lv" works fine. To reproduce the error, I launched gvim from the shell the same way it is launched from nautilus: # gvim -f file:///home/me/path/file.tex And look, i had two buffers and \lv didnt work. Interestingly, # gvim file:///... (without '-f') opens two buffers but \lv works. Looking into the man-page "-f" means "foreground, do not fork and detach from the shell vim was started in". Whatever that means. Testing # gvim -f path/file.tex results in one buffer, but \lv doesnt work. So forget the two buffers and file:// URL and focus on "-f" So i guess the problem is analyzed and solved, but im not sure whose it is :-) regards, Sebastian. |