sent 18:17:23 07 April 2011, Thursday
by wxuyec:
> After I type / to start search, if I want to use
> UP key to go through the searching history,
> I got a character "A" inserted.
It means that vim failed to recognize a sequence of bytes (likely "\eOA") that
terminal sends when you press <Up> as an <Up> key. If `$TERM' variable has right
value then I don't know the proper fix for this, but you can use a workaround:
Add the following lines to the vimrc:
" Replace the following condition with something that will identify terminal
" where you are experiencing your problem
if $TERM is "xterm"
" Replace "\eOA" and ... with right codes. You can get them by typing
" <C-v><Up>, <C-v><Down>, ... `\e' is an representation of escape
" character which will be shown as (blue by default) `^[' when you type
" <C-v><Up>.
for [s:key, s:value] in [["Up", "\eOA"],
\["Down", ...],
\...
\]
execute "set <".s:key.">=".s:value
endfor
endif
Original message:
> hi, everyone,
>
> After I type / to start search, if I want to use
> UP key to go through the searching history,
> I got a character "A" inserted. Did anybody
> meet the problem? how should I fix that?
> thank you. my vim is 7.2.330 and I am using
> the fcitx input method, is this what the problem
> come from?
No comments:
Post a Comment