Vim Evince forward and backward search for vim-LaTeXSuite and VimTeX
January 4, 2018 ยท View on GitHub
This plugin provides backwards and forward search between GVIM and Evince.
Only works on GVIM at the moment.
Installation
Should work with standard plugin managers.
Requirements
- Evince
- Python 3
- Python 2
Usage
LatexSuite
" 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.
VimTex
" 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: