Giter Site home page Giter Site logo

sved's Introduction

Description

SVED is a Vim plugin enabling synctex synchronization support for Vim and Evince through DBus. Vim/gVim and Neovim are supported

Requirements

SVED requires Neovim or Vim 8 (for asynchronous job support) or later, Evince version 3.0 or later and the python3 command available in your PATH. Vim does not need to be compiled with python support.

Installation

Pathogen Install

Do: git clone https://github.com/peder2tm/sved.git ~/.vim/bundle/ and create a binding to do forward synchronization: nmap <F4> :call SVED_Sync()<CR>

Manual Install

Place both files of the plugin in ~/.vim/ftplugin/ and create a binding to do forward synchronization: nmap <F4> :call SVED_Sync()<CR>

Forward Synchronization

The plugin searches for a file called *.latexmain (like vim-latex-suite) or *.synctex.gz in order to do forward synchronization. If your main file of the latex project is called main.tex, you can create an empty file called main.tex.latexmain and the script will use this to find the main pdf. Compile the project with: pdflatex --synctex=1 main.tex Then forward synchronization should work.

Backward Synchronization

When you have a tex file open in Vim, ctrl-click in the Evince pdf and Vim will jump to the corresponding point. Vim will also jump to files you do not currently have open.

Older Vim installations

The plugin requires Vim 8 or later because it makes use of the asynchronous job feature introduced in Vim 8 to do backward synchronization. If you are using an older version of Vim, check out the version 1.0 release here on Github, which supports older versions of Vim, but does only work with gVim (not console Vim), because it needs the GTK loop of gVim to catch the bacward sunchronization signal from DBus.

sved's People

Contributors

peterbjorgensen avatar symphorien avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.