Skip to content

BourgeoisBear/vimcolor2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vimcolor2html.sh

Why?

Live-toggling colorschemes in Vim is slow and error-prone. This script will take a list of installed Vim color schemes and generate a list of HTML example files from it.

Usage

vimcolor2html.sh
================
   Creates colored HTML samples of [EXAMPLE SOURCE] using installed Vim color schemes listed in [COLOR SCHEME LIST].
   Writes an HTML file for each color scheme listed in [COLOR SCHEME LIST] TO [OUTPUT FOLDER].
Usage
=====
   ./vimcolor2html.sh [COLOR SCHEME LIST] [EXAMPLE SOURCE] [OUTPUT FOLDER]

FYI

  • List installed colorschemes in Vim: :colorscheme <Ctrl-d>
  • Requires bash and vim
  • Thanks to: Robert Elder's article on using Vim inside a pipe
  • This will run faster on smaller example files
  • Terminal needs to have 256-color support. If you use tmux, start it as tmux -2.

Alternate Homepage

Resources