You are not logged in.

#1 2018-10-23 09:25:05

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Vim and Tmux <Alt-key> binding in Urxvt

I have set URxvt.meta8: true in ~/.Xresources because I need to map <Ctrl-Alt-key> in Vim. See My last topic. Now I try to change default tmux prefix from <Ctrl-b> to <Alt-b>. This works only for URxvt.meta8: false in ~/.Xresources. Any idea how to make tmux bind <Alt-key> and Vim map <Ctrl-Alt-key> in Urxvt simultaneously?

Basically I will satisfied by URxvt.meta8: false and mapping, e.g. <Alt-j>, in Vim with

execute "set <A-j>=\ej"
map <A-j> <Esc>:tabnext<CR>

But I don't know how to map <Ctrl-Alt-key> in Vim, e.g. <Ctrl-Alt-j>.

Last edited by Kirill Bugaev (2018-10-25 12:43:08)

Offline

#2 2018-10-24 08:52:25

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Re: Vim and Tmux <Alt-key> binding in Urxvt

I have set URxvt.meta8: false in ~/.Xresources. Then I try to get <Ctrl-Alt-k> char sequence in terminal with cat:

$ cat
^[^K

Then I make map for <C-A-k> in Vim:

execute "set <C-A-k>=\e^K"
map <C-A-k> <Esc>:bp<CR>

But it doesn't work.
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 12 2018 23:25:13)

Last edited by Kirill Bugaev (2018-10-24 08:52:56)

Offline

#3 2018-10-25 12:01:38

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Re: Vim and Tmux <Alt-key> binding in Urxvt

Sorry, last post was incorrect. Problem still is not solved.

Last edited by Kirill Bugaev (2018-10-25 12:42:20)

Offline

Board footer

Powered by FluxBB