1

I'm having a weird issue running gvim 8.2.1081 on fedora 32 using kde. When selecting text in visual mode gvim keeps swapping between an underline and the expected visual text selection while moving the cursor.

underline

correct visual text selection

In both images all the text is selected.

Gvim was installed using the vim-X11 package.

At first I thought it was the colorscheme, but changing it didn't work.

Any suggestions on how to fix it or what may be causing the problem?

Thanks in advance.

3
  • 3
    Welcome to Vi and Vim!
    – D. Ben Knoble
    Commented Jul 16, 2020 at 2:26
  • 3
    Looks like :h hl-VisualNOS
    – Matt
    Commented Jul 16, 2020 at 5:32
  • 1
    You were absolutely right Matt, thank you so much didn't know about that Commented Jul 16, 2020 at 12:59

1 Answer 1

1

Responding For Future Reference.

It was indeed the VisualNOS highlight, fixed it by making VisualNOS highlight match Visual highlight and removing the underline.

Thanks for the help.

1
  • Could you edit this to say what command you used? I ended up doing this by :hi VisualNOS <arguments> and using the mouse to select and paste the arguments that are displayed by :hi Visual - but notably not including the xxx that is shown for display purposes. But it was tricky to figure it out.
    – Starman
    Commented Oct 14, 2022 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.