Fix arrow keys on terminal, #18.

This commit is contained in:
Israel Chauca Fuentes
2010-06-02 22:34:01 -05:00
parent 3d818560eb
commit 592cf2fea1

View File

@@ -643,6 +643,12 @@ function! delimitMate#ExtraMappings() "{{{
inoremap <buffer> <Del> <C-R>=delimitMate#Del()<CR>
"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 <silent> <C-[>OC <RIGHT>
endif
endfunction "}}}
function! delimitMate#UnMap() " {{{