Hi, all before describing my problem, I'd list the env. applications I used here:
OS:linux 2.6.37-ARCH (archlinux i686) vim: 7.2.436 Terminal emulator: urxvt (with 256colors patch) kent$ echo $TERM rxvt-256color kent$ echo $LANG en_US.UTF-8 (I need the encoding to be UTF-8, this cannot be changed) I run vim in terminal. I want to move cursor in INSERT mode by pressing ALT-hjkl, after the cursor moved, stay in INSERT mode, so that I could continue typing words. articles I've read: http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim http://vim.wikia.com/wiki/Get_Alt_key_to_work_in_terminal what I tried: (all ^[j were typed by ctrl-v alt-j in InsertMOde) *WITHOUT* URxvt*meta8: true option *a) *in .vimrc do a keyCode mapping with ttimeoutlen=50 like this: ( only alt-j mapping was pasted as example): set timeout ttimeoutlen=50 set <F13>=^[j "ctrl-v alt-j imap <F13> <down> with this conf, moving cursor in INSERT mode was ok. If I press <ESC> and j. Vim brings me back to insert Mode. I don't know why the ttimeoutlen=50didn't work. *b)* also tried: set timeout ttimeoutlen=50 set <M-j>=^[j With this setting, when I pressed ALT-j, cursor moves without keeping in Insertmode. *WITH* URxvt*meta8:true with mapping *a)*, if I type ALT-j once, nothing happened, if I type it several times, one "e" with an accent mark was typed. with *b)* doesn't work either. Also I 've read that with meta8 true, I could directly map imap <M-j> <down> and this doesn't work for me either.... Can you guys give me any hints how should I map the ALT-hjkl in terminal ? and why in a), the ttimeoutlen doesn't work for me ..? Where is the mistake I did? Thanks in advance Kent -- 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
