Ⅰ. 插件描述
A monokai theme for vim airline that gets out of your wayⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yavor-ivanov/airline-monokai-subtle-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yavor-ivanov/airline-monokai-subtle-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yavor-ivanov/airline-monokai-subtle-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yavor-ivanov/airline-monokai-subtle.vim
Ⅳ. 文档说明
# airline-monokai-subtle
A vim-airline theme for the monokai colour scheme, that gets out of your way.
Normal mode:
Visual mode:
Insert mode:
Replace mode:
Rationale
I love vim-airline for its extensibility, style, and useful information it provides. Yet, all of the default themes that come with it are flashy and distracting in real use. I wanted something that will show me useful status information, but doesn't get in my way while reading code.
Installation
This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
Pathogen
git clone https://github.com/Yavor-Ivanov/airline-monokai-subtle.vim ~/.vim/bundle/airline-monokai-subtle
NeoBundle
NeoBundle 'Yavor-Ivanov/airline-monokai-subtle.vim'
Vundle
Plugin 'Yavor-Ivanov/airline-monokai-subtle.vim'
Plug
Plug 'Yavor-Ivanov/airline-monokai-subtle.vim'
manual
- copy all of the files into your
~/.vimdirectory
- copy all of the files into your
Configuration
After installing the theme, add this to your .vimrc:
let g:airline_theme = 'monokai_subtle'FAQ
Q: My status bar looks different than yours. How do I get the cleaned-up look that you have?
A: I've added this airline configuration to my .vimrc:
let g:airline_section_x = '' " Get rid of the file encoding
let g:airline_section_y = '' " Get rid of the file type
" Truncate the status mode to one capital letter
let g:airline_mode_map = {
\ '__' : '-',
\ 'n' : 'N',
\ 'i' : 'I',
\ 'R' : 'R',
\ 'c' : 'C',
\ 'v' : 'V',
\ 'V' : 'V',
\ '^V' : 'V',
\ 's' : 'S',
\ 'S' : 'S',
\ '^S' : 'S',
\ }Q: Can I use this theme if I use a different colour scheme?"
A: Probably. Most of the colours in the theme are obtained from vim's higlight groups, which means it will use whatever colours your colour scheme uses. On the other hand, I've only tested this on monokai. You may find that you get inappropriate colour combinations with a different scheme.