Skip to content

Commit

Permalink
Fix tagbar map check
Browse files Browse the repository at this point in the history
`g:loaded_tagbar` is only defined at first tagbar toggle,
and is not available before.
  • Loading branch information
timss committed Sep 3, 2017
1 parent 29893db commit 5bfcf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
""" }}}
""" Plugins {{{
" Toggle tagbar (definitions, functions etc.)
if exists('g:loaded_tagbar')
if exists('g:plugs["tagbar"]')
map <F2> :TagbarToggle<CR>
endif

Expand Down

0 comments on commit 5bfcf01

Please sign in to comment.