change the color scheme in vim
2015-03-23 18:44
316 查看
vim74 默认有几种 颜色模式,我比较喜欢 desert
设置方法1: 在 vim配置中设置
设置方法2: 在某个文件中切换颜色模式
设置方法3: 自定义颜色模式
想要基于 desert颜色模式修改某几个颜色参数, 可以拷贝一份出来修改比如:
设置方法1: 在 vim配置中设置
➜ ~ vim ~/.vimrc
color: desert
设置方法2: 在某个文件中切换颜色模式
:colorscheme //查看当前颜色模式 :color desert
设置方法3: 自定义颜色模式
想要基于 desert颜色模式修改某几个颜色参数, 可以拷贝一份出来修改比如:
➜ ~ cp /usr/share/vim/vim74/colors/desert.vim /usr/share/vim/vim74/colors/ganiks.vim ➜ ~ vim /usr/share/vim/vim74/colors/ganiks.vim :%s/desert/ganiks/g #将deser都换成新的颜色模式名字 ganiks " syntax highlighting groups¬ hi Comment▸ guifg=SkyBlue¬ hi Constant▸guifg=#ffa0a0¬ hi Identifier▸ guifg=palegreen¬ hi Statement▸ guifg=khaki¬ hi PreProc▸ guifg=indianred¬ hi Type▸▸ guifg=darkkhaki¬ hi Special▸ guifg=navajowhite¬ "hi Underlined¬ hi Ignore▸ guifg=grey40¬ "hi Error¬ hi Todo▸▸ guifg=orangered guibg=yellow2¬
相关文章推荐
- In Delphi XE2 FireMonkey - How do i change the color of a button after pressing it
- change backgroud color of the windows in ubuntu
- How to change the output color of echo in Linux
- 怎样控制Qt标题栏(How can I handle events in the titlebar and change its color etc ? )
- how can i change the back color on mouse out to the color specified in gridview
- How to change the Text color of Menu item in Android?
- 怎样控制Qt标题栏(How can I handle events in the titlebar and change its color etc ? )
- How to change the highlight color in autocomplete box in Eclipse
- 怎样控制Qt标题栏(How can I handle events in the titlebar and change its color etc ? )
- How to change the text color of the selected property sheet tab in Visual C++
- Networks of Innovation : Change and Meaning in the Age of the Internet
- When ESC is pressed, change the color of the character.
- vim: the command is not available in this version
- All routing maps in a partition scheme must also be listed on a line in the configuration file.
- vim: 自定义颜色主题(colorscheme)
- Coloring the Console Application (AddingText and Background color in C#)
- BASH Shell change the color of my shell prompt under Linux or UNIX
- change the template in a image Gallery
- How to change the background color of form using C++ - 如何用C++改变窗体的颜色
- 我的vim colorscheme