获取所有vim颜色配置方案

ls /usr/share/vim/vim74/colors/

  

[root@lx ~]# ls /usr/share/vim/vim74/colors/
blue.vim      default.vim  desert.vim   evening.vim  morning.vim  pablo.vim      README.txt  shine.vim  torte.vim
darkblue.vim  delek.vim    elflord.vim  koehler.vim  murphy.vim   peachpuff.vim  ron.vim     slate.vim  zellner.vim

 

[root@lx ~]# vim /etc/vimrc
增加对 vim配置 
syntax on #打开颜色高亮 
set number #打开行号 
set ts=2 #设置tab键
set t_Co=256 #设置256色
 
如果觉得默认的配色方案不好,可以看一下/usr/share/vim/vim63/colors,那里保存着很多的配色方案,你可以任选一个加入到文件中。

进入文件后加入如下一行,选择desert作为配色方案

colorscheme desert

  退出重新打开vim发现vim注释颜色和vim插件栏目树的字体颜色已经改变

相关文章:

  • 2021-10-30
  • 2022-01-26
  • 2021-10-02
  • 2022-01-07
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-06-24
  • 2021-09-06
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案