[Vim-latex-devel] how to return to vim if I call inverse search in xdvi.
Brought to you by:
srinathava,
tmaas
From: peng s. <sha...@gm...> - 2009-10-09 14:13:32
|
Hi everybody. I am using vim+latex-suite to do tex editing. Especially I use the following way to do inverse search: in .bashrc vimtex='vim --servername vimtex' and in .vimrc :map \ld :execute 'xdvi -editor "vim --servername 'v:servername' --remote +\%l \%f" -sourceposition ' . line(".") . expand("%") . " " . expand(Tex_GetMainFileName(':r')) . ".dvi &"<CR><CR> let g:Tex_ViewRule_dvi = 'xdvi -editor "vim --servername vimtex --remote +\%l \%f"' and by pressing ctrl and double clicking the mouse in xdvi, the cursor of vim jumps to somewhere I want, it works perfectly and I am happy with it but my little problem is that, after double click the mouse while pressing the ctrl, I would still stay in the window of xdvi, in other words the window of vim did not get the focus so I have to use alt+tab to switch to vim's window, it is a little inconvenient. Is there anyway to let the windows of vim to obtain the focus automatically? I am using gnome... Thanks :) Peng |