You are not logged in.

#1 2018-10-22 12:38:46

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

[Solved]How to map <Alt-Key> in vim

Topic subject and first post have been edited to clear the problem.
Sorry for dumb question.
Now I map <Alt-j> in vim with

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

Is it possible to map it simply? Just

map <A-j> <Esc>:tabnext<CR>

Last edited by Kirill Bugaev (2018-10-23 07:48:58)

Offline

#2 2018-10-23 07:27:40

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

Re: [Solved]How to map <Alt-Key> in vim

I use Urxvt terminal, so problem was that Urxvt handle Meta (Alt) + keypress as an escape prefix [default].
I add following in ~/.Xresources

! handle Meta (Alt) + keypress to set the 8th bit
URxvt.meta8: true

and problem has disappeared.
I should read ArchWiki more attentively. Urxvt

Last edited by Kirill Bugaev (2018-10-23 07:29:29)

Offline

Board footer

Powered by FluxBB