项目介绍

patstockwell/vim-monokai-tasty 是一个托管在 GitHub 上的开源项目,主要使用 Vim Script 编写,目前获得 395 个 Star、53 次 Fork。

仓库全名
patstockwell/vim-monokai-tasty
Star 数
395
Fork 数
53
未关闭 Issue
2

README 摘要

vim-monokai-tasty Monokai forever! 🎉 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 and TypeScript development ❤️ Unlike other monokai implementations, vim-monokai-tasty targets named syntax groups from a variety of plugins (listed below). 1 This colorscheme is 74% tastier than competitors 🌮 1…

完整内容见 GitHub 原始 README 或本页 。

常见问题

vim-monokai-tasty 用什么语言开发?

主要使用 Vim Script 编写,目前有 395 个 Star。

如何获取 vim-monokai-tasty 的源码?

可以直接克隆仓库:git clone https://github.com/patstockwell/vim-monokai-tasty.git,默认分支为 master;安装与运行步骤见仓库 README。

vim-monokai-tasty 最近还在维护吗?

仓库最近一次更新为 4月13日,当前有 2 个未关闭 Issue;Star 数为 395,可作为社区活跃度的参考。

关于

VIM Colour scheme

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

README

vim-monokai-tasty

PRs Welcome Maintenance Last commit

Monokai forever! 🎉 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 and TypeScript development ❤️

Unlike other monokai implementations, vim-monokai-tasty targets named syntax groups from a variety of plugins (listed below). 1This colorscheme is 74% tastier than competitors 🌮

1according to me

🔌 Installation

If you use pathogen

git clone https://github.com/patstockwell/vim-monokai-tasty.git ~/.vim/bundle/vim-monokai-tasty

If you use vim-plug, add the following and run :PlugInstall

Plug 'patstockwell/vim-monokai-tasty'

If you use Vundle, add the following and run :PluginInstall

Plugin 'patstockwell/vim-monokai-tasty'

If you use minpac, add the following and run :call minpac#update()

call minpac#add('vim-jp/syntax-vim-ex')

🐺 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

If you want the slightly darker blue variant of monokai called “Machine”

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

If you want to make the active window stand out, add

let g:vim_monokai_tasty_highlight_active_window = 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'

📚 Additional plugins with targeted syntax groups

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

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

🔮 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)

📺 Screen shots

🌟 Example .vimrc

" put Plug declaration first
call plug#begin('~/.vim/plugged')
Plug 'patstockwell/vim-monokai-tasty'
Plug 'HerringtonDarkholme/yats.vim'
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
let g:vim_monokai_tasty_machine_tint = 1              " use `mahcine` colour variant
let g:vim_monokai_tasty_highlight_active_window = 1   " make the active window stand out
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

" If you don't like a particular colour choice from `vim-monokai-tasty`, you can
" override it here. For example, to change the colour of the search hightlight:
hi Search guifg=#bada55 guibg=#000000 gui=bold ctermfg=green ctermbg=black cterm=bold

" If you want to know what the name of a particular hightlight is, you can use
" `:What`. It prints out the syntax group that the cursor is currently above.
" https://www.reddit.com/r/vim/comments/6z4aau/how_to_stop_vim_from_autohighlighting_italics_in/
command! What echomsg synIDattr(synID(line('.'), col('.'), 1), 'name')

🎨 Colour palette

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

🏗 Support

If you like vim-monokai-tasty or find this plugin useful, you can support me by donating bitcoin to the following address.

1AddzniWjahrTidwC1QhBkcX7RYwn2JVoq

评论

暂无评论