1

I am having a trouble configuring ViM in urxvt: The lower and upper (buffer) bars are transparent.

urxvt

Things I have tried:

  • opened vim in tty2 and confirmed that it looks the same as in urxvt
  • it looks suffiently right in terminator and gnome-terminal
  • used tmux within urxvt: it works as in the other terminals
  • modify the colorsheme
  • modify the background color for vim
  • modify the Xdefaults
  • modify airline theme
  • modify the g:airline_powerline_fonts
  • set different $TERM in urxvt
  • set different t_Co in vimrc
  • gvim look the same as the other terminals

I don't care much for anything else, except for this. It is anoying not being able to see the upper and lower bars plus having a dark blue font (makes it hard to see). For the glyphs, I should probably add in my Xdefaults the correct font.

Additional debugging info:

  • echo $TERM gives rxvt-unicode
  • CentOS 7
  • ViM version 8.2 (included patches 1-125)
  • My Xdefaults
  • My vimrc

Note: I know this is a recurring problem when using urxvt, but I tried every single solution I could find.

Edit: This seems to be a problem in my URXT color support/config. I ran the perl script (contained in this post) and got this in urxvt and this in gnome-terminal.

  • Looks like the switching to the alternate screen (provided by the terminal) does not work for you? – Ned64 Feb 26 '20 at 21:58
  • could you elaborate, please? – vgl94 Feb 26 '20 at 22:03
  • The vi(m) editor works by switching from the normal terminal screen to a second screen (like a second layer of text) which is normally hidden. After exiting it will switch back, getting you to the original screen. In your screenshot it looks like two screens are visible at the same time, mixed, which makes things unreadable. I do not know how to fix this. However, try typing Ctrl+L to see whether that re-draws and fixes the screen. – Ned64 Feb 26 '20 at 22:30
  • It didn't work... – vgl94 Feb 26 '20 at 22:33
  • 1
    I finally got that working: When you use sudo yum install rxvt-unicode you are installing a version which does not support 256 colors. What I did was: 1. sudo yum install rxvt-unicode (dependency) 2. downloaded urxvt-256color from centos.pkgs.org/7/epel-x86_64/… 3. chmod +x and sudo rpm -i This left me with the urxvt and urxvt-256colors. – vgl94 Feb 27 '20 at 16:07
1

I finally got that working:

When you use sudo yum install rxvt-unicode you are installing a version which does not support 256 colors. What I did was:

  1. yum install rxvt-unicode (dependency)
  2. downloaded urxvt-256color from CentOS pkgs repo
  3. rpm -i package_name This left me with the urxvt and urxvt-256colors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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