Linux 如何在vi中的不同配色方案之间进行更改?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3975606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 23:44:09  来源:igfitidea点击:

How can I change between different color schemes in vi?

linuxvi

提问by user481372

How can I change between different color schemes in vi?

如何在vi中的不同配色方案之间进行更改?

回答by jhenninger

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 <newcolorscheme>. 您可以使用选项卡循环浏览已安装的配色方案。

See http://vim.wikia.com/wiki/Switch_color_schemesfor more information

有关更多信息,请参阅http://vim.wikia.com/wiki/Switch_color_schemes

回答by wick

you could try different color schemes like this:

您可以尝试不同的配色方案,如下所示:

https://kb.mediatemple.net/questions/1565/Enabling+vi+syntax+colors#gs

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

或将浅蓝色更改为青色或其他任何内容