On Wed, 13 Apr 2011, wxuyec wrote:
I see. thank you.
do you have any advice to the problem?
If you try the revised version:
echo -e '\033[?1h\033=' ; cat ; echo -e '\033[?1l\033>'
(then press Up, Down, Right, Left, then press Enter, then Ctrl+d),
Do you get: ^[[A^[[B^[[C^[[D
Or: ^[OA^[OB^[OC^[OD
?
I presume the latter. In which case, don't these work? (I thought they were
already suggested -- but maybe it was just the last time this came
up...)
set t_ku=^[OA
set t_kd=^[OB
set t_kr=^[OC
set t_kl=^[OD
Where the ^[ is a *single character* entered as a literal escape character:
<ctrl-v><esc>
Or, try the following, where everything is as it looks (I dislike
putting literal control chars in a .vimrc):
exe "set t_ku=\<Esc>OA"
exe "set t_kd=\<Esc>OB"
exe "set t_kr=\<Esc>OC"
exe "set t_kl=\<Esc>OD"
--
Best,
Ben
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php