I have exactly same two CentOS 6 boxes. Trying to install vim and enable color scheme file.
Same thing, same vim versions used but the color scheme works in one machine and not in other.
Here are info:
# vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 24 2015 02:23:23)
...... +syntax
# cat ~/.vimrc
filetype plugin indent on
syntax on
color termschool
# ll ~/.vim/colors/
termschool.vim
Everything are "exactly" same on both Server. But the color scheme file is working on one but not on another one.
Here is what's happening:
- When i edit a file using
vim, it always falls intodefaultscheme. (So it shows default colors) - When i remove the color scheme file
~/.vim/colors/termschools.vim, then thevimshows error message. (So, that meansvimstill looks for the color scheme file, which is correct manner) - But when i put the file back again, nothing happens but the
defaultcolor are loaded again.
I'm very confused now. Any advice please?
echo $TERMon both the values are identical ? Anyway this question can help you check the number of colors – Vincent Nivoliers Mar 22 '16 at 16:55