From 74d10c15beb6536c0625cd45721d470ac345ed4c Mon Sep 17 00:00:00 2001 From: Enno Nagel Date: Mon, 12 Jan 2015 20:48:46 +0100 Subject: [PATCH] inverse search: make vim cursor position better reflect positin in pdf --- autoload/latex/view.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/latex/view.vim b/autoload/latex/view.vim index 17b54bf..8cf7d93 100644 --- a/autoload/latex/view.vim +++ b/autoload/latex/view.vim @@ -158,6 +158,9 @@ function! latex#view#mupdf_rsearch() "{{{1 silent exec "edit " . mupdf_infile if line > 0 silent exec ":" . line + " Unfold, move to top line to correspond to top pdf line, and go to end of + " line in case the corresponding pdf line begins on previous pdf page. + normal! zvztg_ endif endfunction