This question already has an answer here:
setcolors.vim of vim's Wikia defines these keybindings:
" F8 next scheme " Shift-F8 previous scheme " Alt-F8 random scheme
but when I use Shift+F8 (the other two work fine) vim just changes the case of the 2 letters on and exactly after the cursor.
:map I see
<S-F8> * :call NextColor(-1)<CR>
so why am I getting this change-2-character-case behavior?
Second, I tried to unmap Shift-F8 by running
:unmap ^[[32~ obtaining
^[[32~ by Ctrl+v and then Shift+F8, but this did not work.
So how do get the desired behavior, getting the previous color scheme with Shift+F8?
Update + PS: I use vim in
I created another user account in my machine (linux), logged in and run vim on a virtual terminal (Ctrl + Alt + F2) and I get the same behavior with Shift+F8, and clearly, I have no vim plugins there, and no
Next, in my account instead of running
vim I run
vim, and Shift+F8 works just fine! Then I run
vim but now Shift+F8 changes 4 characters instead of 2!
So it should be a terminal/
tmux related issue and not a vim issue. I have not managed to find what causes the problem though and how to fix it though...
Update after comments
echo $TERM is
:!echo $TERMinside every one of the above.
Ctrl+v and immediately after Shift+F8 produces:
+terminfo and there is clearly no
The output of
:set ttybuiltin termcap differs slightly between: