more cautious init check

This commit is contained in:
Andy Wokula
2017-11-01 20:50:25 +01:00
parent c5bf6053f3
commit 14004e00e0

View File

@@ -3036,6 +3036,8 @@ nnoremap <Plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1
" This is a workaround to enable lazy-loading from supported plugin managers: " This is a workaround to enable lazy-loading from supported plugin managers:
" See https://github.com/scrooloose/nerdcommenter/issues/176 " See https://github.com/scrooloose/nerdcommenter/issues/176
call s:SetUpForNewFiletype(&filetype, 1) if !has('vim_starting') && &filetype != ""
call s:SetUpForNewFiletype(&filetype, 1)
endif
" vim: set foldmethod=marker : " vim: set foldmethod=marker :