Pdf Reader With Vim Keybindings

Zathura: PDF Viewer for VIM Lovers - Pearls in Lifegorky wrote:

If your question is about Vim, your CLion explanation and tags are totally irrelevant. In Vim, you would put this line in /.vimrc: nnoremap:Command. See:help key-notation for and note that Vim doesn't make a difference between. Now, Vim has no 'fuzzy' capability on its own, so you will need a third party. The Foxit PDF reader is currently not available in the repository, so you have to download the deb (or tar) file from its website. Download Foxit PDF reader. All beta and dev version of Google Chrome come with an inbuilt PDF reader that you can use immediately. It is very minimal and only comes with the zoom in/out feature.

I use zathura, because it fits perfectly into awesome wm - no unnecessary borders, tabs and so on. The second - and probably the most important - feature is its auto-refresh.
As I work primarily with LaTeX, a pdf viewer without auto refresh is much less usable.

This is what I used to think, but I've changed my mind. If you have xdotool installed, you can have your LaTeX compilation script call...

My List Of Applications With Vi Keybindings : Vim

My LaTeX Setup - vim, Skim, and latexmk | topicsSee more on superuserPdf Reader With Vim Keybindings

[Solved] Synchronize PDF Reading ...

... if it is successful in compiling. That sends the 'r' key as input to MuPDF, which refreshes it. That's (IMHO) better than an auto-refresh, and never tries to update when it shouldn't.

My LaTeX Setup - vim, Skim, and latexmk | topics

In fact, I now have gvim set up with an autocmd to save, compile LaTeX and update MuPDF in such a way that the preview live-updates as I type. It emulates gummi, but with an editor that doesn't suck. I tried to make this work with Zathura, but if a compilation failed, Zathura would get stuck because of the corrupted PDF and stop auto-updating. But with the above, MuPDF only refreshes when the compilation was successful, so it never tries to load a corrupted PDF.

(It sorta works with Evince's autoupdate, since it doesn't get 'stuck' the way Zathura does, but it goes much slower, since it's a much heavier program than MuPDF.) MuPDF is the only thing fast enough to 'almost' keep up with the source screen.

Cached

Last edited by frabjous (2010-10-20 21:14:22)