Skip to content

pablopunk/vim-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-colors

Returns vim color configuration for given inputs

This is an npm package so you can use it in your Javascript projects. If you only want to generate a scheme, use vimcolors.org

Install

npm install vim-colors

Usage

This results into a viml configuration script with a dark background (black) and a white foreground

const vimColors = require('vim-colors')

const configString = vimColors('my-scheme', {
  dark: true,
  bg: '000000', // black
  fg: 'ffffff', // white
  menus: '002244', // navy blue
  comments: 'cccccc', // gray
  scheme: [
    '4169e1',
    'ff6347'
    // You can add up to 6 colors
  ]
})

Related

License

MIT

Author

me
Pablo Varela