mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 03:33:48 -05:00
more cautious init check
This commit is contained in:
@@ -3036,6 +3036,8 @@ nnoremap <Plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1
|
||||
|
||||
" This is a workaround to enable lazy-loading from supported plugin managers:
|
||||
" 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 :
|
||||
|
||||
Reference in New Issue
Block a user