Do not create bogus imap. closes #113 , closes #87.

This commit is contained in:
Israel Chauca Fuentes
2013-02-08 20:43:32 -05:00
parent 0326b7c14a
commit 7b5887c324

View File

@@ -406,13 +406,6 @@ function! s:ExtraMappings() "{{{
if !hasmapto('<Plug>delimitMateJumpMany', 'i') && maparg("<C-G>g", 'i') == '' if !hasmapto('<Plug>delimitMateJumpMany', 'i') && maparg("<C-G>g", 'i') == ''
imap <silent> <buffer> <C-G>g <Plug>delimitMateJumpMany imap <silent> <buffer> <C-G>g <Plug>delimitMateJumpMany
endif endif
" 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') && (!exists('g:delimitMate_no_esc_mapping') || !g:delimitMate_no_esc_mapping) && maparg('<C-[>OC', 'i') == ''
imap <silent> <C-[>OC <RIGHT>
endif
endfunction "}}} endfunction "}}}
"}}} "}}}