Why vim beep after "set <M-P>=^[P in xterm.
Hi everyone.
In order to make alt key works in vim in xterm (I set metaSendEscape in order to make other application works well), I put this in .vimrc:
for i in range(65, 90) + range(97, 122)
exe "set <M-".nr2char(i).">=\<Esc>".nr2char(i)
endfor
set ttimeoutlen=50
But the vim will beep (and do some strange thing) after starts. (In urxvt there is no problem). I use binary search to find that it is i = 80 cause the problem.
If I just only put "set <M-P>=^[P" in vimrc(^[ is Ctrl-V <ESC>). Xterm also will beep. (Only P will) It is really a weird behavior. The thing which is weirder is if you directly run ":<M-P>=^[P" there is no problem. It only occur when this line is in vimrc.
|