From 592cf2fea11359e3a07293be9478e78de35a7ab9 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Wed, 2 Jun 2010 22:34:01 -0500 Subject: [PATCH] Fix arrow keys on terminal, #18. --- autoload/delimitMate.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 9e0339b..d60a3be 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -643,6 +643,12 @@ function! delimitMate#ExtraMappings() "{{{ inoremap =delimitMate#Del() + "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 &term[:4] == "xterm" + inoremap OC + endif endfunction "}}} function! delimitMate#UnMap() " {{{