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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to