mirror of
https://github.com/patstockwell/vim-monokai-tasty.git
synced 2025-11-12 20:03:50 -05:00
99 lines
3.2 KiB
Markdown
99 lines
3.2 KiB
Markdown
# 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:
|
|
|
|

|
|
|
|
## :electric_plug: Installation
|
|
|
|
I recommend using [Plug](https://github.com/junegunn/vim-plug).
|
|
|
|
Add the following to your `.vimrc` and run `PlugInstall`
|
|
|
|
```vim
|
|
Plug 'patstockwell/vim-monokai-tasty'
|
|
```
|
|
|
|
Works best with these if you write javascript or React
|
|
```vim
|
|
Plug 'pangloss/vim-javascript'
|
|
Plug 'MaxMEllon/vim-jsx-pretty'
|
|
Plug 'styled-components/vim-styled-components'
|
|
Plug 'elzr/vim-json'
|
|
```
|
|
|
|
## :wolf: Use
|
|
|
|
Add the following to your `.vimrc` (after the Plug declaration):
|
|
```vim
|
|
colorscheme vim-monokai-tasty
|
|
```
|
|
|
|
If you use a terminal that supports italic text, add (before the colorscheme declaration):
|
|
```vim
|
|
let g:vim_monokai_tasty_italic = 1
|
|
colorscheme vim-monokai-tasty
|
|
```
|
|
|
|
To use the included [lightline.vim](https://github.com/itchyny/lightline.vim) theme:
|
|
```vim
|
|
let g:lightline = {
|
|
\ 'colorscheme': 'monokai_tasty',
|
|
\ }
|
|
```
|
|
|
|
To use the included [vim-airline](https://github.com/vim-airline/vim-airline) theme:
|
|
```vim
|
|
let g:airline_theme='monokai_tasty'
|
|
```
|
|
|
|
## :crystal_ball: Extras
|
|
|
|
- If you use [iterm2](https://iterm2.com/) (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`
|
|
|
|
```vim
|
|
" 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 name |Colour Code | Colour
|
|
|------------------|------------|------------------------------------------------------------
|
|
| Yellow | `#ffff87` |
|
|
| Purple | `#af87ff` |
|
|
| Light Green | `#A4E400` |
|
|
| Light Blue | `#62D8F1` |
|
|
| Magenta | `#FC1A70` |
|
|
| Orange | `#FF9700` |
|
|
|