How do I turn vi colors off? I was using vim-tiny on on Ubuntu 14.04. Installed vim-nox. Version is version 7.4.52. Once I installed that, I got all these syntax colors by default. I have my Terminal set to a black background with bright green text. Now when I use vi with the colors, some of the text is unreadable against the dark background. I would rather just turn the colors off. How do I do this?
You can use:
This will tell Vim that you're not using a colour terminal. The difference with using
:syntax off is that this will still enable some syntax highlighting features with bold, underlined, and "reverse video".
Just discovered this after viewing
/etc/vim/vimrc for the first time. Uncommenting the line "
set background=dark" in
vimrc solves my readability problem also. It changes the syntax colors so that they are distinguishable against my black background! This is actually better than what I had hoped for in the original question!
:set background=dark would have worked, too? Or something like that?)
You can disable syntax highlighting by doing:
To turn it back on: