From 008b9eb78d96a8b50429009d03114103c22a7959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 9 Feb 2017 21:29:05 +0100 Subject: [PATCH] Fixed #682 --- autoload/vimtex.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)')