Literal terminal code of
set <f4> is:
t_k4 <F4> ^[[14;*~
They are totally different, unlike results of f5-f12 (which are the same except the modifier related sequence).
Both of following command will trigger
call feedkeys('^[OS') call feedkeys('^[[14~')
I also need to add extra setting to make
<s-f[1-4]> work properly:
... set <f16>=^[[1;2S map <f16> <s-f4> set <f28>=^[[1;5S map <f28> <c-f4>
Why are f1-f4 special, what's the relationship between their terminal code and vim's t_xx key codes ?
I'm using vim8.1-1432 on ubuntu16.04.