Updated SumatraPDF suggestions according to #680

This commit is contained in:
Karl Yngve Lervåg 2017-02-09 21:35:06 +01:00
parent 008b9eb78d
commit d57b7720f8

View File

@ -986,13 +986,15 @@ Options~
the command line. This can be utilized to set the correct the command line. This can be utilized to set the correct
|servername| for inverse search: > |servername| for inverse search: >
let g:vimtex_view_general_viewer = 'SumatraPDF -reuse-instance ' let g:vimtex_view_general_viewer = 'SumatraPDF'
let g:vimtex_view_general_options
\ = '-reuse-instance -forward-search @tex @line @pdf'
\ . '-inverse-search "gvim --servername ' . v:servername \ . '-inverse-search "gvim --servername ' . v:servername
\ . ' --remote-send \"^<C-\^>^<C-n^>' \ . ' --remote-send \"^<C-\^>^<C-n^>'
\ . ':drop \%f^<CR^>:\%l^<CR^>:normal\! zzzv^<CR^>' \ . ':drop \%f^<CR^>:\%l^<CR^>:normal\! zzzv^<CR^>'
\ . ':execute ''drop '' . fnameescape(''\%f'')^<CR^>' \ . ':execute ''drop '' . fnameescape(''\%f'')^<CR^>'
\ . ':\%l^<CR^>:normal\! zzzv^<CR^>' \ . ':\%l^<CR^>:normal\! zzzv^<CR^>'
\ . ':call remote_foreground('''.v:servername.''')^<CR^>\""' \ . ':call remote_foreground('''.v:servername.''')^<CR^>^<CR^>\""'
< <
*vimtex_viewer_mupdf* *vimtex_viewer_mupdf*
http://www.mupdf.com/ http://www.mupdf.com/