diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 6e1d3ba..84fcdda 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -214,6 +214,7 @@ function! airline#extensions#load() endif if get(g:, 'airline#extensions#bookmark#enabled', 1) + \ && exists(':BookmarkToggle') call airline#extensions#bookmark#init(s:ext) call add(s:loaded_ext, 'bookmark') endif diff --git a/autoload/airline/extensions/bookmark.vim b/autoload/airline/extensions/bookmark.vim index ce7d8ce..65ebf33 100644 --- a/autoload/airline/extensions/bookmark.vim +++ b/autoload/airline/extensions/bookmark.vim @@ -1,6 +1,13 @@ " " MIT License. Copyright (c) 2019 Bjoern Petri " + +scriptencoding utf-8 + +if !exists(':BookmarkToggle') + finish +endif + function! airline#extensions#bookmark#currentbookmark() if get(w:, 'airline_active', 0) let file = expand("%:p")