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.
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]
- List installed colorschemes in Vim:
:colorscheme <Ctrl-d>
- Requires
bash
andvim
- 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 astmux -2
.