Hi everybody, I knew this is not a new topic. I had that problem years ago, tried a lot and finally gave up. Recently, I went through my vimrc, and found my very old commented out codes:
"mapping <a-j> in unxvt doesn't work, gave up!! about 3,4 years have past, I did some tests just now, it still didn't work. What I want to map is simple, <a-j/k> move current line up/down. The mapping is easy. point is how to make <alt> work. what I tried: (e.g <a-j>) set timeout timeoutlen=1000 ttimeoutlen=100 set <m-j>=^[j (c-v then a-j) inoremap <m-j> <Esc>:m+<CR>==gi this works, problem is if in Insert mode I press<esc> to back to normal mode and `j` to next line, vim does above mapping, which stops switching to Normal, but move the current line down and stay in Insert mode. The ttimeout=100 didn't seem to work.. no idea why. also tried : set timeout timeoutlen=1000 ttimeoutlen=100 set <m-j>= ^[j imap ^[ j <m-j> inoremap ^[ j <Esc>:m+<CR>==gi it prints the "ê" Is there already a working solution for it? thanks Kai -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
