On Tue, 12 Apr 2011, wxuyec wrote:

sorry, don't understand.

do you want me to run the command of
echo $terminfo[smkx] ; cat ; echo $terminfo[rmkx]
?

I wasn't really suggesting anything to do. I was just explaining why just running `cat` wasn't enough to show you the keys Vim would see.


it just print [smkx] and wait there.

It waits for you to press keys, which it will echo to the terminal. To quit: hit Enter, then Ctrl+D

Since it prints [smkx], that means you're not running Zsh. If you want to see something, try:

echo -e '\033[?1h\033=' ; cat ; echo -e '\033[?1l\033>'

The arrow keys should show up as ^[OA^[OB^[OC^[OD

Then try just plain `cat` again:

The arrow keys should show up as ^[[A^[[B^[[C^[[D

--
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

Reply via email to