From a5772187fad4438a5bd85a839f91a0a2d5ae85ed Mon Sep 17 00:00:00 2001 From: Andy Wokula Date: Wed, 1 Nov 2017 20:50:25 +0100 Subject: [PATCH] Use more cautious init check --- autoload/nerdcommenter.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index aa1d48f..07cc7b1 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -3040,6 +3040,8 @@ nnoremap NERDCommenterAltDelims :call 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') + call s:SetUpForNewFiletype(&filetype, 1) +endif " vim: set foldmethod=marker :