I've been trying to map Ctrl + F8 in several different ways but I just can't get it to work. After I made some researches I found out that vim doesn't support all terminal keycodes and I have to assign the terminal keycode to an empty vim keycode (like F13). I followed this guide step by step without no success.
What i did is:
- Find the terminal (URxvt) keycode for Ctrl + F8 using cat. The result is: ^[[19^
- Added the following lines to my plugin file:
nnoremap <F13> :call foobar