From 9b86e000f26ef0d4bb1a8a912b07395a411c7efc Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 24 May 2016 10:24:40 +0300 Subject: [PATCH] Add work around to support lazy-loading Closes #176, thanks to @chilicuil. --- plugin/NERD_commenter.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 609b4b1..725d014 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -2878,4 +2878,9 @@ inoremap NERDCommenterInsert :call NERDComment('i " switch to/from alternative delimiters (does not use wrapper function) 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) + " vim: set foldmethod=marker :