At least not on my mac. It works fine in Vim. Is this simply an error in Neovim?

  • 5
    When you insert a literal <S-F10> (<C-v><S-F10> in insert mode), what is displayed? On my system, with Vim, I see: ^[[21;2~. I can't use <S-F10> by default, because Vim doesn't recognize the previous sequence of keycodes, so I have to teach that it means <S-F10>. To do this, I have to write in my vimrc: silent! exe "set <S-F10>=\e[21;2~" The keycodes to the right of the equal sign are the same as the ones displayed when inserting a literal <S-F10>. Except for the leading ^[ which must be replaced by \e (escape keycode). After that I can use <S-F10>. Maybe that will help. Mar 26, 2016 at 7:42
  • @user9433424, thank you! that solved it. in nvim, shifting turns f1 to f13, etc.
    – Toothrot
    Mar 26, 2016 at 11:46

1 Answer 1


I had this problem of mapping Shift+Fx keys combination on different systems. Unfortunately solutions were also different.

I wanted to map Shift+F8. On one system I had to put the following into my vimrc:

nnoremap <S-F8> :cprev<CR>

The combination of characters "^[[32~" in the first line was created by pressing Ctrl-v and then Shift-F8 keys in insert mode.

With neovim this approach did not work. Pressing Ctrl-v and then Shift-F8 in insert mode resulted in following characters: "".

But the following mapping command works just fine:

nnoremap <F20> :cprev<CR>

Strange, but it actually maps Shift+F8 key combination.

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.