diff --git a/autoload/vimtex.vim b/autoload/vimtex.vim index be1c9ab..e0e41fe 100644 --- a/autoload/vimtex.vim +++ b/autoload/vimtex.vim @@ -427,7 +427,7 @@ function! s:init_mappings() " {{{1 call s:map('n', 'lY', '(vimtex-labels-toggle)') endif - if get(g:, 'vimtex_view_enabled', 0) + if has_key(b:vimtex, 'viewer') call s:map('n', 'lv', '(vimtex-view)') if has_key(b:vimtex.viewer, 'reverse_search') call s:map('n', 'lr', '(vimtex-reverse-search)')