Add work around to support lazy-loading

Closes #176, thanks to @chilicuil.
This commit is contained in:
Caleb Maclennan 2016-05-24 10:24:40 +03:00
parent a5b5caff08
commit 9b86e000f2
No known key found for this signature in database
GPG Key ID: 63CC496475267693

View File

@ -2878,4 +2878,9 @@ inoremap <silent> <plug>NERDCommenterInsert <SPACE><BS><ESC>:call NERDComment('i
" switch to/from alternative delimiters (does not use wrapper function)
nnoremap <plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1)<cr>
" 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 :