Search code examples
vimlinux-mint

Setting a color theme on Vim


I've updated vim to its latest release (8.1.39) and I'm still not able to have a color theme working. I've downloaded atom.vim to ~/.vim/colors. Note: in my Ubuntu install it's working just fine.

And my ~/.vimrc is as follows:

set t_Co=256
set background=dark
colorscheme atom
syntax on

When I run :colorscheme in vim it returns atom but still with no color/syntax highlight at all.

What could I be missing?

Thanks!


Solution

  • The colorscheme you are trying to use only works with GUI Vim (GVim/MacVim) or maybe with TUI Vim but only if your terminal supports true colors and if your Vim is built with that feature and if you :set termguicolors (and possibly other hacks).

    See :help 'termguicolors'.

    Also, the README.md is not called IGNOREME.md for a good reason:

    Currently Atom is GVim only. I tend to use the default colours when (infrequently) in a terminal. If you have a strong desire for added terminal support leave me a comment, drop me an email or even better: send me a pull request!

    (Emphasis mine.)