# Tex and pdf synchronization

I'm trying to make backward and forward search work between my pdf output in skim and my tex file in macvim with 'vim latex suite' using PDFSync. I think I did everything well, as when I CMD-SHIFT-CLICK my pdf file I get into the tex file. Two issues :

• if autofold is set in macvim it does not automatically defold my file when jumping the cursor. This would be useful especially when browsing my pdf file for errors and not have to defold every section in my tex file by hand.
• disregarding previous folding issue, the cursor appears on the correct line in my tex file. I'd like to have it on the right word. Especially when the sentence covers several lines.

Basically, I'd like to have the same behavior I had when using texshop with its internal editor and using CMD-CLICK.

-
Perhaps wolke23.at/2010/07/… may help you. –  egreg Jun 14 '11 at 16:33
@egreg. Thanks! The folding issue is resolved. But it still brings the cursor to the beginning of the line instead of on the right word... A behavior I'd like to reproduce from texshop. –  Nigu Jun 14 '11 at 18:25
Take Macro Lombardi's answer, in vim set tw=80 –  Yan Zhou Jun 16 '11 at 22:27