I am using Vim 64 bit and have installed Vimtex on Windows 11. I can compile a LaTeX file and changes are shown in the pdf file, but typing \lv
does not open my pdf viewer, SumatraPDF.
Here is part of my _vimrc
file:
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_CompileRule_pdf = 'pdflatex -synctex=1 -interaction=nonstopmode $*'
let g:Tex_ViewRule_pdf = 'SumatraPDF -reuse-instance'
I have tried changing letg:Tex_ViewRule_pdf = 'C:\path\to\SumatraPDF -reuse-instance'
and have added SumatraPDF to my PATH.
Here is my latexmk output when I run \lo
Win CP console initial and current in/out Win: (437, 437), (1252, 1252)
Coding system for system and terminal: 'CP1252'
---
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77, version: 4.77.
======= Need to update make_preview_continuous for target files
Not using a previewer
------------
Running 'echo vimtex_compiler_callback_compiling'
------------
vimtex_compiler_callback_compiling
Latexmk: Nothing to do for 'testing.tex'.
Latexmk: All targets (testing.pdf) are up-to-date
------------
Running 'echo vimtex_compiler_callback_success'
------------
vimtex_compiler_callback_success
Win CP console initial and current in/out Win: (437, 437), (1252, 1252)
Coding system for system and terminal: 'CP1252'
---
Thanks!