Display Alt + left | right to move tabs

Ideally, I would like to <A-left>fulfill :tabmove -1and <A-right>fulfill :tabmove +1. However, when I put

nnoremap <A-left> :tabmove -1<cr>
nnoremap <A-right> :tabmove +1<cr>

in my .vimrc and try or, vim beeps and moves my cursor one character in the direction I clicked. However, entering :tabmove -1<cr>directly into command mode gives the desired effect. How can i fix this? Thanks in advance.

+5
source share
2 answers

- , , , , GVIM. , Ctrl + -, , Ctrl + letter vs. Ctrl + Shift + . vim_dev #vim IRC-.

, . <Leader><Left>/<Leader><Right>.

+6

key code, vim:

$ sed -n l
^[[1;9D 

sed Alt + Left.

^[[1;9D - , vim, .

.vimrc

map <Esc>[1;9D :tabn<CR>

vim Alt + Left

+8

All Articles