When using Skim.app for reverse-searches, is there any way to make the .tex file come to the front if it's already open in a macvim tab? What if there are multiple vim windows open (not just tabs)?
The 'standard' script (http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=TeX_and_PDF_Synchronization#Editor_Script_for_VIM) works if you have the file open in the active tab, but NOT if you have it open in a non-active tab (the vim command bufexists
doesn't work for other tabs).
The Skim.app standard mvim --remote-silent +":%line" "%file"
is, to me, completely useless - it overwrites the current open buffer on the first MacVim window open. Is there any way to change this behavior to find the current open copy of the file?
EDIT: A note I hope is helpful for others - I could not get the applescript to work at all until I added the line
-e "delay 0.2" \
to the start of the script and changed the ESC key passing to be
-e " key code 53 "\