How can I change between different color schemes in vi?
如何在vi中的不同配色方案之间进行更改?
2 个解决方案
#1
10
you could try different color schemes like this:
你可以试试这样的不同颜色方案:
https://kb.mediatemple.net/questions/1565/Enabling+vi+syntax+colors#gs
My problem was only deep blue comment color in default color scheme, so I changed just that:
我的问题只是默认颜色方案中的深蓝色注释颜色,所以我改变了:
cd ~
vi .vimrc
highlight comment ctermfg=lightblue
or change lightblue to cyan or whatever
或者将浅蓝色变成青色或其他什么
#2
4
As far as I know, plain ol' vi doesn't provide different colorschemes. If you are using vim however, you can type :colorscheme <newcolorscheme>
. You can use tab to cycle through the installed colorschemes.
据我所知,普通ol'vi不提供不同的颜色方案。但是,如果您使用的是vim,则可以键入:colorscheme
See http://vim.wikia.com/wiki/Switch_color_schemes for more information
有关更多信息,请参见http://vim.wikia.com/wiki/Switch_color_schemes
#1
10
you could try different color schemes like this:
你可以试试这样的不同颜色方案:
https://kb.mediatemple.net/questions/1565/Enabling+vi+syntax+colors#gs
My problem was only deep blue comment color in default color scheme, so I changed just that:
我的问题只是默认颜色方案中的深蓝色注释颜色,所以我改变了:
cd ~
vi .vimrc
highlight comment ctermfg=lightblue
or change lightblue to cyan or whatever
或者将浅蓝色变成青色或其他什么
#2
4
As far as I know, plain ol' vi doesn't provide different colorschemes. If you are using vim however, you can type :colorscheme <newcolorscheme>
. You can use tab to cycle through the installed colorschemes.
据我所知,普通ol'vi不提供不同的颜色方案。但是,如果您使用的是vim,则可以键入:colorscheme
See http://vim.wikia.com/wiki/Switch_color_schemes for more information
有关更多信息,请参见http://vim.wikia.com/wiki/Switch_color_schemes