mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 21:24:51 +08:00
Fix arrow keys on terminal, #18.
This commit is contained in:
@@ -643,6 +643,12 @@ function! delimitMate#ExtraMappings() "{{{
|
|||||||
|
|
||||||
inoremap <buffer> <Del> <C-R>=delimitMate#Del()<CR>
|
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 "}}}
|
endfunction "}}}
|
||||||
|
|
||||||
function! delimitMate#UnMap() " {{{
|
function! delimitMate#UnMap() " {{{
|
||||||
|
|||||||
Reference in New Issue
Block a user