Include SumatraPDF setup for forward and backward search

Works like a charm over here.
This commit is contained in:
Konfekt 2014-10-23 20:24:08 +02:00
parent eceef44436
commit e192ad4161

View File

@ -722,10 +722,24 @@ mapping, such as this for the popular viewer Okular: >
\ . '\#src:' . line(".") . expand('%:p'))
endfunction
nmap <leader>ls :call SyncTexForward()<cr>
Or, as this for the popular viewer SumatraPDF under Windows: >
nnoremap <expr><buffer><silent> <F11> ':VimLatexView '.
\ '-forward-search '.shellescape(expand('%:p')).' '.line(".").' '.
\ g:latex#data[b:latex.id].out().'<CR>'
Backward search is generally set up inside the specific viewers, and how to do
this depends on the viewer. Please read the specific manuals or search the
web to find out how to do it.
web to find out how to do it. For example for SumatraPDF a working setup is: >
let g:latex_viewer='SumatraPDF -reuse-instance -inverse-search '.
\ '"gvim --servername '.v:servername.' --remote-send \"^<C-\^>^<C-n^>'.
\ ':drop \%f^<CR^>:\%l^<CR^>:normal\! zzzv^<CR^>'.
\ ':call remote_foreground('''.v:servername.''')^<CR^>\""'
==============================================================================
MOTION *vim-latex-motion*