I've been strugling with this topic the whole afternoon...
If I want to change the colorscheme of gvim, it's ok (here with the donbass.vim):
but the same under vim, and the colors are not exact at all:
the content of my vimrc, well it's on the screenshots :D
I'm running Windows 7 and vim 7.4, but I also tried with Windows 8 without success...
Any idea what's wrong? Thank you!
When you use command line Vim, it's restricted to the terminal's color palette. Command Prompt only supports 16 colors, which are unlikely to match the colorscheme very well. If you want it to look decent, you need to install a terminal which supports 256 colors.
OK, resueman is right... Apparently on MS Windows it's almost useless to try to get 256 colors with vim (but it's OK with gvim).
I followed the directions from this link: http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
and then installed this plugin from here: http://www.vim.org/scripts/script.php?script_id=3412
the results with vim: so obviously, even if I set t_Co=256 in my vimrc, it doesn't work...
with gvim:
I read this blog post where a user tried a lot of things running Windows, but quit in the end :D http://mx.kelsin.net/2014/02/17/installing-vim-and-a-sane-environment-in-windows/
So! If I want pretty themes / colors using vim under Windows, I'll stick to gvim!
Thanks for the hint resueman :)
Edit: another solution that works great (thank you Alex Kroll): use ConEmu and follow those directions: ConEmu: Vim Syntax Highlight
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With