BourgeoisBear / vimcolor2html

Batch-generate HTML examples of Vim color schemes.

Home Page:https://eggplant.pro/vimcolor2html.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Batch-generate HTML examples of Vim color schemes.

https://eggplant.pro/vimcolor2html.md

License:GNU General Public License v2.0


Languages

Language:Shell 100.0%