only use g:NERDDefaultDelims if no filetype has been set

This commit is contained in:
ervandew 2013-02-11 15:03:07 -08:00
parent 0c04654498
commit 4f3d9c0e12

View File

@ -441,7 +441,7 @@ function s:SetUpForNewFiletype(filetype, forceReset)
endfunction
function s:CreateDelimMapFromCms()
if exists('g:NERDDefaultDelims')
if &ft == '' && exists('g:NERDDefaultDelims')
let delims = g:NERDDefaultDelims
for i in ['left', 'leftAlt', 'right', 'rightAlt']
if !has_key(delims, i)