vim-monokai-tasty


Ⅰ. 插件描述

VIM Colour scheme

Ⅱ. 基本信息

创建日期:  2018-12-05
使用用户:  71
Github星:  179
插件作者:  Patrick Stockwell

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'patstockwell/vim-monokai-tasty'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'patstockwell/vim-monokai-tasty'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'patstockwell/vim-monokai-tasty'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/patstockwell/vim-monokai-tasty

Ⅳ. 文档说明

# vim-monokai-tasty

Monokai forever! :tada: Inspired by Sublime Text's interpretation of monokai, this colour is both gui- and cterm-supported.
It works for all languages, and is particularly good for Javascript development :heart:

Unlike other monokai implementations, vim-monokai-tasty targets named syntax groups from a variety of modern syntax group plugins (listed below). *74% tastier than competitors :taco:

*according to me

:electric_plug: Installation

I recommend using Plug.

Add the following to your .vimrc and run PlugInstall

Plug 'patstockwell/vim-monokai-tasty'

For JavaScript or React development, monokai-tasty supports definitions from all these plugins.
Add some of these for an even better look and feel:

Plug 'pangloss/vim-javascript'
Plug 'MaxMEllon/vim-jsx-pretty'
Plug 'styled-components/vim-styled-components'
Plug 'elzr/vim-json'
Plug 'jparise/vim-graphql'

If you use _Vundle_:

Plugin 'patstockwell/vim-monokai-tasty'

:wolf: Use

Add the following to your .vimrc (after the Plug declaration):

colorscheme vim-monokai-tasty

If you use a terminal that supports italic text, add (before the colorscheme declaration):

let g:vim_monokai_tasty_italic = 1
colorscheme vim-monokai-tasty

To use the included lightline.vim theme:

let g:lightline = {
      \ 'colorscheme': 'monokai_tasty',
      \ }

To use the included vim-airline theme:

let g:airline_theme='monokai_tasty'

:crystal_ball: Extras

  • If you use iterm2 (you should), there is an included monokai.itermcolors file.
  • If you use GnuCoreutils there is a dircolors file (compliments the iterm colours)

:tv: Screen shots



:star: Example .vimrc

" put Plug declaration first
call plug#begin('~/.vim/plugged')
Plug 'patstockwell/vim-monokai-tasty'
Plug 'pangloss/vim-javascript'
Plug 'MaxMEllon/vim-jsx-pretty'
Plug 'elzr/vim-json'
Plug 'styled-components/vim-styled-components'
Plug 'itchyny/lightline.vim'
Plug 'vim-airline/vim-airline'
call plug#end()

let g:vim_monokai_tasty_italic = 1                    " allow italics, set this before the colorscheme
colorscheme vim-monokai-tasty                         " set the colorscheme

" Optional themes for airline/lightline
let g:airline_theme='monokai_tasty'                   " airline theme
let g:lightline = { 'colorscheme': 'monokai_tasty' }  " lightline theme

" `What` will print out the syntax group that the cursor is currently above.
" from https://www.reddit.com/r/vim/comments/6z4aau/how_to_stop_vim_from_autohighlighting_italics_in/
command! What echo synIDattr(synID(line('.'), col('.'), 1), 'name')

:art: Colour palette

Colour nameColour CodeColour
Yellow#ffff87#ffff87
Purple#af87ff#af87ff
Light Green#A4E400#A4E400
Light Blue#62D8F1#62D8F1
Magenta#FC1A70#FC1A70
Orange#FF9700#FF9700

添加新评论