Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile pdf to loaction of cursor on vim #1400

Closed
thereisnospooon opened this issue Jun 3, 2019 · 2 comments
Closed

Compile pdf to loaction of cursor on vim #1400

thereisnospooon opened this issue Jun 3, 2019 · 2 comments

Comments

@thereisnospooon
Copy link

Describe the solution you'd like
I'm using neovim with vimtex on Ubuntu to write tex files.
My .vimrc file is here -

https://pastebin.com/0Hs5EaEg

When I'm saving my .tex file vimtex automatically compiles the tex to pdf (on default evince). After compilation, I would like the pdf to open in a position close to where I am with the cursor on vim. Is it possible?

Thanks,

@lervag
Copy link
Owner

lervag commented Jun 3, 2019

What you are asking for is called forward search with synctex, see :help vimtex-synctex and :help g:vimtex_view_method. Let me know if you have problems after reading the relevant documentation.

@lervag lervag closed this as completed Jun 3, 2019
@lervag
Copy link
Owner

lervag commented Jun 3, 2019

See #179 for a related discussion. Note also the recommendation to look into other viewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants