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 intodefault
scheme. (So it shows default colors) - When i remove the color scheme file
~/.vim/colors/termschools.vim
, then thevim
shows error message. (So, that meansvim
still looks for the color scheme file, which is correct manner) - But when i put the file back again, nothing happens but the
default
color are loaded again.
I'm very confused now. Any advice please?
echo $TERM
on both the values are identical ? Anyway this question can help you check the number of colors – Vincent Nivoliers Mar 22 '16 at 16:55