Skip to content

Latest commit

 

History

History
 
 

vim

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Vim Purify

Purify dark theme for vim (neovim)

Contents

Installation

You can install purify easily if you are using vim-plug:

Plug 'kyoz/purify', { 'rtp': 'vim' }

Note: Other vim plugin manager have similar installation, just remember rtp option

Then add this to your vim config file:

syntax on " This is required
colorscheme purify

Note: All customize option should be placed before you call colorscheme purify. If not, it'll not have any effects.

Languages and Filetypes Support

Purify support consistent color syntax for almost all common languages and file types (base on vim's runtime syntax):

  • Html, Html5...
  • Css, Scss, Sass, Less
  • Json, Xml, Markdown
  • Javascript, Typescript (Require typescript-vim's syntax)
  • Python, Go
  • C, C_++
  • All languages that vim support til now

Frameworks support

Plugins Support

Built-in:

By default, without any configuration, purify auto support consistent colors for:

Airline

If you are using vim-airline:

let g:airline_theme='purify'

Lightline

If you are using lightline.vim:

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

Customize

Font styles

By default, Purify will support for italic, bold, underline... You can disable them if you want:

let g:purify_bold = 0        " default: 1
let g:purify_italic = 0      " default: 1
let g:purify_underline = 0   " default: 1
let g:purify_undercurl = 0   " default: 1
let g:purify_inverse = 0     " default: 1

Note: Those style formats only working if your terminal, your settings, your fonts support em.

Overrides colors

You can overrides purify's colors if there's some colors you don't like:

let g:purify_override_colors = {
    \ 'pink':  { 'gui': '#FF87FF', 'cterm': '213' },
    \ 'green': { 'gui': '#5FD700', 'cterm': '76' }
\ }

Why i have to install other plugins

  • Purify is only aim for colorscheme, i'v tried my best to make purify colorscheme is the same is all languages support by vim, nvim.

  • But for new languages, frameworks... you have to install other plugins to have correct syntax, I'll tried my best to support plugins that have good syntax for new languages, frameworks like React, Vue...

Lisence

MIT © Kyoz