Add an option to prevent mapping to ^[OC.

Might be useful in #87.
This commit is contained in:
Israel Chauca Fuentes
2012-02-28 18:27:13 -05:00
parent 0fb597ef36
commit 26a6def62f

View File

@@ -397,7 +397,7 @@ function! s:ExtraMappings() "{{{
" The following simply creates an ambiguous mapping so vim fully processes
" the escape sequence for terminal keys, see 'ttimeout' for a rough
" explanation, this just forces it to work
if !has('gui_running')
if !has('gui_running') && (!exists('g:delimitMate_no_esc_mapping') || !g:delimitMate_no_esc_mapping)
imap <silent> <C-[>OC <RIGHT>
endif
endfunction "}}}