3

Stupid I know, but I can't find for the life of me what keycombination the <M-n> mapping is.

  • :bn<CR> is mapped to <C-n> wich is ctrl+n
  • :bp<CR> is mapped to <M-n> wich is ?
11
  • 1
    Type :help <M-
    – Matt
    Commented Feb 14, 2021 at 19:46
  • @Matt, that returns E149: Sorry, no help for <M Commented Feb 14, 2021 at 19:51
  • 1
    This is strange. <M- stands for "alt-key or meta-key". Everything is explained under :h key-notation. Individual topics are marked appropriately: backspace, <Enter>, <M- etc.
    – Matt
    Commented Feb 14, 2021 at 20:08
  • @Matt - thanks, that was the help I couldn't find. So <M or <A are both the alt key according to the help but my mapping :nnoremap <M-n> :bp<CR> does exactly nothing. I have switched to <S-n> wich does work. Commented Feb 15, 2021 at 6:23
  • 1
    "Alt" works only in GUI. Also, "S-n" is just "N" and it's not the best idea to remap it.
    – Matt
    Commented Feb 15, 2021 at 6:26

1 Answer 1

3

The meta key is another name for the alt key. This is akin to how the Windows key is called the super key in the Linux world.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.