/vim-evince-synctex

Forward and backward search (synctex) between gvim and Evince

Primary LanguagePython

Vim <-> Evince forward and backward search for vim-LaTeXSuite and VimTeX

This plugin provides backwards and forward search between VIM and Evince.

Not tested on GVIM at the moment.

Installation

Should work with standard plugin managers.

Requirements

  • Evince
  • Python 3
  • Python 2

Usage

" compile your pdf with --synctex support:
let g:Tex_CompileRule_pdf =
      \ 'pdflatex --synctex=1 -interaction=nonstopmode -shell-escape "$*"'

Use \ls to forward search, use Ctrl+Left Mouse to backward search.

" Bind forward search (this command is provided by us)
nnoremap <leader>lf :VimtexForwardSearch<CR>

Use \lf to forward search, use Ctrl+Left Mouse to backward search.

Resources and previous work

evince_dbus.py:

evince-backward-search:

Other resources: