In the last weeks I'm trying terminator
as my terminal emulator (instead of the old and good xterm
), and even though the experience is better, there's an annoying detail: all mappings involving alt don't work at all.
For example, I took these mappings from this reddit:
nnoremap <A-j> :m+<CR>==
nnoremap <A-k> :m-2<CR>==
nnoremap <A-h> <<
nnoremap <A-l> >>
inoremap <A-j> <Esc>:m+<CR>==gi
inoremap <A-k> <Esc>:m-2<CR>==gi
inoremap <A-h> <Esc><<`]a
inoremap <A-l> <Esc>>>`]a
vnoremap <A-j> :m'>+<CR>gv=gv
vnoremap <A-k> :m-2<CR>gv=gv
vnoremap <A-h> <gv
vnoremap <A-l> >gv
nnoremap <A-S-l> viwxp`[v`]
nnoremap <A-S-h> viwxhhp`[v`]
inoremap <A-S-l> <Esc>viwxp`[v`]
inoremap <A-S-h> <Esc>viwxhhp`[v`]
vnoremap <A-S-l> xp`[v`]
vnoremap <A-S-h> xhhp`[v`]
that allow to just "drag" the current line above or below, or indent it to the left or right with just alt plus the usual keys for movement: j, k, h, l.
Well, all these mappings don't work if I use terminator
(but they do if I use xterm
).
Is this a normal problem with terminator
?