no default mappings at all

This commit is contained in:
Andy Wokula
2016-12-18 17:34:36 +01:00
parent f5571fd82f
commit 032143ad23

View File

@@ -47,7 +47,6 @@ call s:InitVariable("g:NERDBlockComIgnoreEmpty", 0)
call s:InitVariable("g:NERDCommentWholeLinesInVMode", 0) call s:InitVariable("g:NERDCommentWholeLinesInVMode", 0)
call s:InitVariable("g:NERDCommentEmptyLines", 0) call s:InitVariable("g:NERDCommentEmptyLines", 0)
call s:InitVariable("g:NERDCompactSexyComs", 0) call s:InitVariable("g:NERDCompactSexyComs", 0)
call s:InitVariable("g:NERDCreateDefaultMappings", 0)
call s:InitVariable("g:NERDDefaultNesting", 1) call s:InitVariable("g:NERDDefaultNesting", 1)
call s:InitVariable("g:NERDMenuMode", 3) call s:InitVariable("g:NERDMenuMode", 3)
call s:InitVariable("g:NERDLPlace", "[>") call s:InitVariable("g:NERDLPlace", "[>")
@@ -2999,9 +2998,6 @@ function! s:CreateMaps(modes, target, desc, combo)
for mode in (a:modes == '') ? [''] : split(a:modes, '\zs') for mode in (a:modes == '') ? [''] : split(a:modes, '\zs')
if strlen(a:combo) if strlen(a:combo)
execute mode . plug_start . mode . plug_end execute mode . plug_start . mode . plug_end
if g:NERDCreateDefaultMappings && !hasmapto(plug, mode)
execute mode . 'map <leader>' . a:combo . ' ' . plug
endif
endif endif
" Check if the user wants the menu to be displayed. " Check if the user wants the menu to be displayed.
if g:NERDMenuMode != 0 if g:NERDMenuMode != 0