On Mon, Apr 15, 2019 at 5:24 PM Jeenu <jeenuv@gmail.com> wrote:
>
> Sometimes, after I attach to a tmux session, visual selection in an already-running vim instance is shown as underlined instead of reversed. See the attached files for the difference; both are from the same host - one from new, and the other from existing session. The only way out I've found is to quit and launch vim again. Does any one know why this happens and/or how to fix it?
>
> 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 don't know why it happens but I know how to find out: next time the
problem happens, and after making sure Vim is in Normal mode (this
will usually mean hitting <Esc>, which will clear the Visual
highlighting) type
:verbose hi Visual
followed by <Enter>. Vim will answer by telling you not only exactly
what the Visual highlight is now set to, but also, which line of which
script (if any) last changed it. The script name and line can only be
missing if that highlight is either at its default, or was last set
manually.
Another possibly relevant setting is the 'background' setting, which
may be "dark" or "light" (without the quotes) and defines whether Vim
thinks that your current default background is a dark one or a bright
one respectively.
:verbose set bg
will tell you the current value and which script (if any) last set it.
Here it is more likely that no script will be mentioned, meaning the
value is still the default value (which, in Console Vim, can be either
"light" or "dark" depending on what Vim believes that you were using
immediately before startup; in gvim, whose Normal highlight is usually
black on white unless you are using a colorscheme, the default is
usually "light").
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Monday, April 15, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment