Dear All,

there is a PDFView program, that supports pdfsync.
It is possible to use the feature from vim-latex.
On \ls PDFView jumps to the correct page.
Backward serach does not work, since
vim lacks remote control capability on Mac.

Just FUI.

May be there are better solutions?

I have the following ~/.vim/after/ftplugin/tex.vim
----------
function! Tex_ForwardSearchLaTeX()
        if &ft != 'tex'
                echo "calling Tex_ViewLaTeX from a non-tex file"
                return
        end

        let mainfnameRoot = fnamemodify(Tex_GetMainFileName(), ':p:r')


        let execString = 'silent! !osascript -e  '''.
                \ "tell application \"PDFView\"  \\\n".
                        \ " display tex line ".line('.')." of file 
\"".mainfnameRoot.".pdf\" \\\n".
                \ "end tell".
                \ ''' &'

        call Tex_Debug("Tex_ForwardSearchLaTeX: execString = ".execString, 
"comp")
        execute execString
        if !has('gui_running')
                redraw!
        endif

endfunction

let g:Tex_ViewRule_pdf = 'PDFView'

----------

  Sincerely, Michail

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to