rdtzn1
March 2nd, 2018, 05:08 PM
Hi All
I'm new to Linux so apologies in advance for any dumb questions.
I've recently set up Ubuntu Server on an old laptop that I have.
I'm trying to get the zenburn colorscheme working in Vim but it requires enabling 256 color mode.
This seemed like it would be pretty straightforward.
The instructions that I followed explained that I needed to set my TERM environment variable to xterm-256color like this:
if [ -e /usr/share/terminfo/x/xterm-256color ]; then
export TERM='xterm-256color'
else
export TERM='xterm-color'
fi
however the x directory did not exist as it appears that xterm was not installed.
So I installed it using sudo apt-get install xterm.
However, when I tried to run xterm, I got a message which said xterm: Xt error: Display not set (or something along those lines)
so I ran export DISPLAY=:0.0
and now get a message which says xterm: Xt error: Can't open display: :0.0
I've also tried with Display=:0 and Display=:1 but get the same message.
Also the x directory in terminfo still does not exist.
If anyone could point me in the right direction for enabling 256 color mode I would be very grateful.
Installing this colorscheme seemed like a 5 minute job which has now consumed most of my afternoon!
I'm new to Linux so apologies in advance for any dumb questions.
I've recently set up Ubuntu Server on an old laptop that I have.
I'm trying to get the zenburn colorscheme working in Vim but it requires enabling 256 color mode.
This seemed like it would be pretty straightforward.
The instructions that I followed explained that I needed to set my TERM environment variable to xterm-256color like this:
if [ -e /usr/share/terminfo/x/xterm-256color ]; then
export TERM='xterm-256color'
else
export TERM='xterm-color'
fi
however the x directory did not exist as it appears that xterm was not installed.
So I installed it using sudo apt-get install xterm.
However, when I tried to run xterm, I got a message which said xterm: Xt error: Display not set (or something along those lines)
so I ran export DISPLAY=:0.0
and now get a message which says xterm: Xt error: Can't open display: :0.0
I've also tried with Display=:0 and Display=:1 but get the same message.
Also the x directory in terminfo still does not exist.
If anyone could point me in the right direction for enabling 256 color mode I would be very grateful.
Installing this colorscheme seemed like a 5 minute job which has now consumed most of my afternoon!