From 26a6def62fc2d5476980ce820e2929f3b49bac9a Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Tue, 28 Feb 2012 18:27:13 -0500 Subject: [PATCH] Add an option to prevent mapping to ^[OC. Might be useful in #87. --- plugin/delimitMate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/delimitMate.vim b/plugin/delimitMate.vim index 7e4bb00..abbdb32 100644 --- a/plugin/delimitMate.vim +++ b/plugin/delimitMate.vim @@ -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 OC endif endfunction "}}}