Skip to content

zathura compatibility with latexmk setting #1063

@chakravala

Description

@chakravala

On arch linux using latest vim/gvim.

When I launch vimtex, this is my command for it in .bashrc

alias vimtex='vim --servername vim'

the configuration is .vimrc

let g:vimtex_view_method = 'zathura'

This configuration works fine for me, except that when I launch it and press \ll for the first time, zathura is opened and the document is displayed in its previous configuration and then the program freezes for a few seconds, and then it resets the display on zathura with the horizontal scroll reset and a bunch of view settings reset.

However, if I add this to .vimrc

let g:vimtex_compiler_progname = 'latexmk'

then the issue goes away and when I press \ll the zathura imediately displays the document and does not freeze for a few seconds and does not reset my view settings or horizontal scroll config.

However now with this setting I can no longer ctrl+click on zathura to communicate back to vimtex where on what line I want the editing cursor to be placed.

How can I make this work using this option? There's probably some simple thing I am overlooking.

Thanks for any assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions