darcula


Ⅰ. 插件描述

A Vim color scheme reproduction of the official JetBrains IDE Darcula theme

Ⅱ. 基本信息

创建日期:  2019-10-06
使用用户:  8
Github星:  76
插件作者:  Pierre Dommerc

Ⅲ. 安装方法

使用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

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
:PlugInstall

usage

put this in your .vimrc

colorscheme darcula

to fully enjoy the color scheme and if your terminal supports Truecolor add

set termguicolors

if 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.comment

also 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

添加新评论