-
Notifications
You must be signed in to change notification settings - Fork 391
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
Viewer always defaults to evince instead of zathura #2802
Comments
According to the I want things like this:
or similar. |
That's correct, I am using that exact procedure as usual (I have not used vimtex in quite a while though). When I use I even tried to change |
Ok. Obviously I can't reproduce this. Can you explain your Vim and VimTeX configuration? |
Thanks for your response! I figured out that it's opening a |
No; Again, can you show me your configuration and setup? VimTeX will always start latexmk (or other compiler backends) to produce pdf's, not dvi, so you are either doing something strange in your config, or you are using some conflicting plugin. |
Unfortunately, my SSD died so I lost some of my configurations and I'm trying to figure out my setup again. My
Although changing it to this doesn't really make a difference:
Whatever I put in there doesn't really seem to affect anything as far as I can tell ... it does affect it if I run
|
Ok. After you open any tex file in Vim, can you do I.e.:
|
|
Cool, notice this:
You have installed LaTeX-Suite, which is a different LaTeX plugin for Vim. This explains your problems, most likely. Learning point: NEVER install Vim plugins through your regular linux package manager! Now, some additional comments:
VimTeX should typically respect your latexmkrc file, and I don't see any immediate problems here. Your Vim configuration looks fine, although I would recommend some things:
Thus, you could simplify and improve your configuration to this: execute pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
syntax on
set wildmode=longest,list,full
set undofile
set nocompatible
set number
set complete+=k
set completeopt=menuone,longest,preview
set linebreak
set breakindent
set breakindentopt=shift:2
set tabstop=4
set shiftwidth=4
colorscheme slate
highlight Normal guibg=NONE ctermbg=NONE
map <leader>o :setlocal spell! spelllang=en_US<CR>
map <leader>s :!clear && shellcheck %<CR>
map <leader>b :vsp<space>$BIB<CR>
map <leader>r :vsp<space>$REFER<CR>
let g:vimtex_matchparen_enabled = 0
let g:vimtex_view_method = 'zathura'
let g:vimtex_view_forward_search_on_start = 0
autocmd BufNewFile,BufRead *.wl set syntax=wl
autocmd BufNewFile,BufRead *.wls set syntax=wl
autocmd BufNewFile,BufRead *.m set syntax=wl
autocmd FileType tex colorscheme lucius
autocmd FileType tex hi Normal guibg=NONE ctermbg=NONE
autocmd FileType tex hi LineNr guibg=NONE ctermbg=NONE
autocmd FileType tex exec("setlocal dictionary+=".$HOME."/.vim/dictionaries/".expand('<amatch>'))
autocmd FileType julia set expandtab softtabstop=4
autocmd FileType julia hi DiffAdd guifg=NONE ctermfg=NONE guibg=#464632 ctermbg=238 gui=NONE cterm=NONE
autocmd FileType julia hi DiffChange guifg=NONE ctermfg=NONE guibg=#335261 ctermbg=239 gui=NONE cterm=NONE
autocmd FileType julia hi DiffDelete guifg=#f43753 ctermfg=203 guibg=#79313c ctermbg=237 gui=NONE cterm=NONE
autocmd FileType julia hi DiffText guifg=NONE ctermfg=NONE guibg=NONE ctermbg=NONE gui=reverse cterm=reverse |
Thank you so much, removing |
Yes, I am not surprised that this was confusing. It is one of the main reasons I strongly urge that noone ever uses Vim plugins through system package managers. In any case, I'm glad to hear this works for you now and I hope you find VimTeX to be a pleasant experience. :) |
One issue I had in the past is that I had to have a custom
Specifically, I changed 500m to 50m, as half a second was simply too sluggish for me. However, I see that VimTex has changed since then, so I no longer know if I need to apply this fix in some other way. And oh yes, VimTex is my favorite environment for LaTeX, I would not want to use anything else! |
Is this the line of code I need to change to 50m to make a similar change as I did in the past: vimtex/autoload/vimtex/view/_template.vim Line 142 in a59a49b
So I need to somehow create another custom file for that? Or could this become an official option to change the sleep timer? |
Yes, that seems right. The reason for adding this delay is that a regular system needs some time to start the viewer and But I realize that it would be much better to start a timer here instead of sleeping. That would remove the I don't have time to fix that immediately, so I suggest the following:
Thanks! |
Description
I always used vimtex with zathura in the past, but now it always defaults to evince instead of zathura and I don't know how to fix it, changing the options doesn't work and I don't know how to troubleshoot this issue. Also I set
xdg-open
to use zathura and that doesn't seem to make a difference either...Expected behavior
Zathuara viewer
Actual behavior
Evince viewer
Do you use a latexmkrc file?
Yes
VimtexInfo
The text was updated successfully, but these errors were encountered: