mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-11 03:03:47 -05:00
Use more cautious init check
This commit is contained in:
committed by
Caleb Maclennan
parent
592d5767e0
commit
a5772187fa
@@ -3040,6 +3040,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
|
||||||
|
if !has('vim_starting')
|
||||||
call s:SetUpForNewFiletype(&filetype, 1)
|
call s:SetUpForNewFiletype(&filetype, 1)
|
||||||
|
endif
|
||||||
|
|
||||||
" vim: set foldmethod=marker :
|
" vim: set foldmethod=marker :
|
||||||
|
|||||||
Reference in New Issue
Block a user