Hi,

I have mappings in my .vimrc that map the Meta-arrow keys

  noremap <silent> <M-up> <C-W>+
  noremap <silent> <M-down> <C-W>-

This works fine in console vim, but it fails when vim is used within
tmux. Then I get sequences like:

  [1;3Aá]
  [1;3Bá]

When I call cat -v from the console (TERM=rxvt-unicode-256color) and
press M-<up> M-<down> I get the following:

  ^[^[[A
  ^[^[[A
  ^[^[[B
  ^[^[[B

When I call cat -v from the console within tmux
(TERM=screen-256color) and press M-<up> M-<down>  I get the
following:

  ^[[1;3A
  ^[[1;3A
  ^[[1;3B
  ^[[1;3B

Which means the terminal interprets the key sequences differently.

How can I map M-<arrow-keys> to something useful when I run vim in
tmux?

Marco

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


Reply via email to