Monday, April 15, 2019

Re: Vim selection underlined rather than reversed

On 4/15/19 9:24 AM, Jeenu 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 sounds to me like screen is loosing state and not (re)displaying
things properly after some condition.

I would bet another order of magnitude that this is the case if you
visually select something so it's highlighted, change screen (disconnect
/ switch screens), change screen back (reconnect / switch back), and
what was highlighted is now underlined.

> 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

This seems to have the same symptoms to me.

You can probably test vim, if not eliminate it from the scenario, by
playing with ANSI control codes at a command line and see if the
symptoms are the same as vim when changing screen (see above).



--
Grant. . . .
unix || die

--
--
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.

No comments: