Ⅰ. 插件描述
A Vim color scheme reproduction of the official JetBrains IDE Darcula themeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'doums/darcula-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'doums/darcula-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'doums/darcula-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/doums/darcula
Ⅳ. 文档说明
## darcula

:smiling_imp: A Vim color scheme reproduction of the official JetBrains IDE Darcula theme
install
Follow the traditional way of your plugin manager
For example with vim-plug add this in .vimrc
Plug 'doums/darcula'then run in vim
:source $MYVIMRC
:PlugInstallusage
put this in your .vimrc
colorscheme darculato fully enjoy the color scheme and if your terminal supports Truecolor add
set termguicolorsif you use lightline
let g:lightline = { 'colorscheme': 'darculaOriginal' }NOTE: lightline already provides a "darcula" color scheme that I find simply bad. I strongly recommend to use mine instead (using darculaOriginal instead of darcula in the above config).
API
the palette is exposed through the dictionary darcula#palette
echo darcula#palette.commentalso if you really want to change some highlight groups you can use darcula#Hi() function
" arguments: group, foreground, background, style
" you can omit the last two arguments
call darcula#Hi('rustLifetime', darcula#palette.macroName, darcula#palette.bg, 'italic')color support
- Truecolor
- 256 color
credits
JetBrains for the original and awsome Darcula color scheme!
license
Mozilla Public License 2.0