Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-10-2011, 10:56 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
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)
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.
Old 03-11-2011, 04:03 AM   #2
LQ Newbie
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
I find the problem: Close Allow Termcaps Ops.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding ":set mouse=a" in vim ankitgupta191 Linux - Newbie 1 05-14-2009 03:36 AM
XTerm set font to "Courier" introuble Linux - General 4 07-25-2006 07:37 AM
XTerm set font to "large" from command line introuble Linux - General 3 06-26-2006 05:11 AM
How to disable the warning sound "beep, beep" ICO Red Hat 1 04-04-2006 02:59 AM
how to set "wrapping size" in VIM staul Linux - Software 1 04-17-2005 08:39 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration