1

I am currently using Ctrl key to navigate tabs in vim in terminal, like this :

noremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>

I would like to change from using Ctrl key to using Alt key instead. I tried this :

noremap <M-Left> :tabprevious<CR>
nnoremap <M-Right> :tabnext<CR>

But, it did not work, I got E 388: No definition found

Any suggestions?

Also, What is the M key in vim? Isn't it Alt?

Morteza Asadi
  • 1,819
  • 2
  • 22
  • 39
The Vivandiere
  • 3,059
  • 3
  • 28
  • 50

1 Answers1

0

I have a feeling you have another mapping overriding this one. To check, try entering this in the Vim command line:

verbose map <M-Left>

This should tell you what you have <M-Left> mapped to and what file the map was made in.

Niko Bellic
  • 2,370
  • 2
  • 29
  • 25