Vim colors too bright (terminal)

こ雲淡風輕ζ 提交于 2019-12-03 21:40:33

You shouldn't compare colorschemes in GUI Vim and in CLI Vim: the number of colors that can be used in both contexts is very different and it makes any comparison worthless. You can get very subtle colors in GUI Vim but you can only approximate them in CLI Vim.

The values used for the gui and those used for the cli are probably different which explains what you see.

The only way to have the same colors in gui and cli vim is to use only colors from the xterm palette for the gui.

In Vim, you could :set background=light (and read :help 'background') to see if it makes the colors less bright.

In your terminal emulator, you could see if there's a setting that deals with color brightness or the usage of bold.

Adding this to my vimrc after the colorscheme definition worked for me.

hi Normal ctermbg=16

Color codes are defined here: http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!