This is the same problem as someone had posted a while ago: https://superuser.com/questions/1186500/vim-visually-selected-text-sometimes-appears-as-underlined-not-reversed
Thanks,
Jeenu
I've attached screen shots capture of running the command two sessions. The output of the hi command shows reversed mode in both sessions.
Also, both sessions say background is dark.
Not sure what to make of these.
Jeenu
:verbose hi Visual
Visual xxx term=reverse cterm=reverse ctermbg=242 guifg=khaki guibg=olivedrab
Last set from /usr/share/vim/vim74/colors/desert.vim
Press ENTER or type command to continue
> Another thing that is likely to be the cause is, Vim is using the
> VisualNOS highlighting group. This is used, when Vim cannot connect to
> the X Server. You mentioned using tmux and re-attaching sessions, so my
> guess is, the re-attachment made Vim not correctly reset the X connect.
>
> So the different highlighting is a way to let you know of it.
>
> There was an issue about Vim not correctly resetting up the X
> connection, (I believe #3649) and a fix seems to have been included by
> 8.1.0615.
The Cygwin server I'm running on my Windows host (vim runs on a remote Linux host) did restart, so could be that issue.
Jeenu
Switching color scheme didn't have any effect, if that's what you were suggesting.
From the observations I've made so far, it does seem like X server disconnection/restart is causing this problem.
My reading is that https://github.com/vim/vim/pull/844 is the PR that has a fix, but hasn't been merged yet.
I'm currently using a prebuilt 8.1.1139, which supposedly contains the "fix" mentioned in https://github.com/vim/vim/issues/3649#issuecomment-449705992, but I observe the same issue as before.
So I suppose I wait until #844 is merged.
--
Jeenu
I'm happy to report that, as of 8.1.1413, Vim has an :xrestore command with which I could get the display back to normal after an X window restart!
--
Jeenu