sponsor Vim development Vim logo Vim Book Ad

tohtml_wincp : Autodetect installed Windows encodings for :TOhtml

 script karma  Rating 1/1, Downloaded by 912  Comments, bugs, improvements  Vim wiki

created by
Ben Fritz
 
script type
utility
 
description
This plugin will automatically add any encodings which you have installed on
your Microsoft Windows system to the g:html_encoding_override and
g:html_charset_override options of the :TOhtml plugin which is distributed
as part of the official Vim runtime.

This plugin has no mappings or user-defined commands. It sets up an :autocmd
that will be invoked the first time that you call the :TOhtml command or
directly :source the 2html.vim script.

Because the plugin does not trigger until just before the first :TOhtml
conversion, you will not see any changes to the encoding detection options
right away. This is normal, do not be alarmed!
 
install details
                                                     tohtml_wincp-requirements
This plugin requires:
        * Vim 7.0 or higher
        * TOhtml version vim7.3_v7 or higher
        * Windows NT/2000 or later (i.e. something that uses a System32
          directory)

                                                          tohtml_wincp-install
To install, there are only three files you need. This :help file, a
tohtml_wincp.vim file to place in your after-directory, and another
tohtml_wincp.vim file to place in your autoload directory.

The easiest way to install is to use Pathogen
(http://www.vim.org/scripts/script.php?script_id=2332) and place the whole
contents of the zip file into $HOME/vimfiles/bundle. Then run the :Helptags
command provided with Pathogen.

For manual installation, simply place the files where they need to go within
your runtime, as follows:
* $HOME/vimfiles/doc/tohtml_wincp.txt
* $HOME/vimfiles/plugin/tohtml_wincp.vim
* $HOME/vimfiles/autoload/tohtml_wincp.vim

Then, run ":helptags $HOME/vimfiles/doc" and installation is complete.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tohtml_wincp-v4.zip 4 2013-04-09 7.0 Ben Fritz Get rid of after/plugin hack allowing use of Pathogen to install; improve TOhtml version detection
tohtml_wincp-v3.zip 3 2011-11-15 7.0 Ben Fritz Fix detection of :TOhtml version to work when v7.4 or 8.0 comes around.
tohtml_wincp-v2.zip 2 2010-12-04 7.0 Ben Fritz Fix bug in load guards and unsupported version msg, remove debug msg
tohtml_wincp-v1.zip 1 2010-11-10 7.0 Ben Fritz Initial upload
ip used for rating: 18.217.144.32

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github