diff --git a/autoload/airline/extensions/cursormode.vim b/autoload/airline/extensions/cursormode.vim index 57d6cf5d..9826ab08 100644 --- a/autoload/airline/extensions/cursormode.vim +++ b/autoload/airline/extensions/cursormode.vim @@ -5,10 +5,12 @@ scriptencoding utf-8 -if !exists('g:loaded_cursormode') +if exists('g:loaded_cursormode') finish endif +let g:loaded_cursormode = 1 + let s:is_win = has('win32') || has('win64') let s:is_iTerm = exists('$TERM_PROGRAM') && $TERM_PROGRAM =~# 'iTerm.app' let s:is_AppleTerminal = exists('$TERM_PROGRAM') && $TERM_PROGRAM =~# 'Apple_Terminal'