Vim2html is a tool that exports files from Vim editor to HTML format.
This program is an excellent method of presenting your programs or any other script on the web in a well-formatted HTML layout. Installation is easy and the defaults should work on most UN*X platforms with Vim 6.x installed. For those using the RPM, installation is a breeze. For those using the tarball, simply open vim2html in your favorite editor (hopefully Vim) and set the user options towards the top to match your environment. Otherwise, vim2html will fail. Make sure to check the section labeled "#### begin user settings ####" for more details.
For best results, copy the vim2html file into /usr/local/bin, or a location set in your PATH. It's important to ensure that vim2html has file permissions of 755. Once installed, usage is simple. The software can be used to convert Vim files (with colors) to HTML with optional tidying (tidying requires HTMLtidy to be present). The output file will be the original filename (including path) with ".html" appended to it.
Options include tidying up HTML/Apply CSS and XHTML (when possible), listing available color schemes, specifying a certain color scheme, displaying line-numbers in the output file, forcing Vim to use a certain file type, printing the help message, and printing the vim2html version information.
The latest release includes improvements in internal variables and error handling, as well as preventing Vim from creating swap files. In conclusion, Vim2html is a user-friendly software with many great features that make it a great choice for those who need to export Vim-readable documents into HTML format.
Version 1.45: N/A