First thing to do if I’m going to use Vim as my default text editor, is to get the colors looking good.
First, I’ve downloaed a theme (for example distinguished.vim) and placed it in my newly created
Next, I created a
~/.vimrc file and entered the following contents:
Finally, if I type in
tput colors into a terminal window, it tells me I have 8 colors. Even though my themes still appear to work in Vim, an error gets reported upon opening Vim.
To fix this error, I’ve edited my
~/.bashrc file and entered the following line.
tput colors reports 256 colors and Vim no longer reports an error when automatically loading my
I must admit though… colors still seem to be a bit wacky for me, as they don’t match the theme examples listed on the web page.