0

Everytime I opened a file with Vim,so many underscore lines in it such as below:

enter image description here

How can remove all the underscore lines ?

:colorsheme is desert.

The highlight output:

enter image description here

The terminal is LXTerminal.

echo $TERM
xterm-mono
4
  • Probably its your colorscheme: check the output of highlight. If you werent expecting underscores, but say italic instead, make sure TERM is configured correctly.
    – D. Ben Knoble
    Commented Sep 19, 2021 at 11:36
  • what terminal are you using? What is $TERM set to? Commented Sep 19, 2021 at 12:24
  • 1
    xterm-mono is most likely wrong. You may want to configure your terminal to perhaps use xterm-256color, but this may have some unwanted consequences, if LXTerminal is not fully xterm compatible. Commented Sep 19, 2021 at 12:49
  • Remark: you should not post the text just in image format. Depends on your terminal, there are different ways to copy from it.
    – user202729
    Commented Oct 15, 2021 at 1:37

1 Answer 1

0

Set $TERM as xterm-256color in .bashrc,the underscore lines disappear.

2
  • 4
    More correctly, configure your terminal emulator to set TERM correctly.
    – D. Ben Knoble
    Commented Sep 21, 2021 at 21:28
  • Maybe accept your own answer after more than two years? Would prevent Community Bot from bumping the thing. Thank you.
    – Friedrich
    Commented Mar 25 at 12:20

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.