make the delimitermap a global variable

This allows people to edit the delimiters at run time.

The option NERDCustomDelimiters can be used in a vimrc (or similar) but
is not useful after vim has loaded. So just open up the s:delimiterMap
hash.
This commit is contained in:
Martin Grenfell
2014-07-08 09:21:57 +01:00
parent 0b3d928dce
commit 6549cfde45

View File

@@ -406,6 +406,8 @@ let s:delimiterMap = {
\ 'z8a': { 'left': ';' }
\ }
let g:NERDDelimiterMap = s:delimiterMap
if exists("g:NERDCustomDelimiters")
call extend(s:delimiterMap, g:NERDCustomDelimiters)
endif