HTML.zip ( Version: 0.40.1 - 69K - Last modified: Nov 26, 2012 - 12:09:37 AM ) – Vim mappings to make editing HTML/XHTML files quick and easy.
This is a set of HTML/XHTML mappings (macros) and menus for Vim 7 or later.
The mappings will be local to the buffer so they won't interfere if you edit
other files in the same vim session.
First you should put "filetype plugin on" in your vimrc.
(Includes HTML.vim, HTML.txt, browser_launcher.vim, MangleImageTag.vim, and
the toolbar bitmaps.) in your runtime directory
(~/.vim for Unix,
$HOME/vimfiles for Windows; see
":help 'runtimepath'"). Then
run ":helptags <directory>/doc" within
Vimball is seriously broken, so it is strongly recommend against using a
.vba file to install this plugin. Among the problems are:
- The Vimball archiver does not properly preserve file encodings, so the
menus for the character entities will not look right (at least when using
the GTK or GNOME versions of gVim).
- Vimball can not properly store binary data, so if you're on a Windows
based system and you want to use the Vimball archive, you still need to
manually install the pixmaps ZIP file provided below
in your bitmaps directory after installing the Vimball.
Due to these problems, the .vba files here are provided only for
Make sure you have a ~/.vim directory
($HOME/vimfiles under windows).
Download one of these three files (includes the
same files as HTML.zip above — these archives require a recent
version of Vimball):
(223K - Last modified: Nov 26, 2012 - 12:09:38 AM )
( 56K - Last modified: Nov 26, 2012 - 12:09:38 AM )
( 50K - Last modified: Nov 26, 2012 - 12:09:38 AM )
Then edit the file and type ":source %". If
all went well you're done.
Put "HTML.vim" ( 134K - Last modified: Nov 26, 2012 - 12:09:20 AM ) in your
ftplugin/html subdirectory somewhere in your
'runtimepath', then install the
files below that you want.
Support for Vim 6 and earlier has been abandoned—the last version that
supported Vim 5 is version 0.10, and the
last version that supported Vim 6 is version
Other old versions can be found here.
These files—except netscape-remote, the
HTML version of the documentation, the
wikipedia.vim—are included in the
(see "installation" above).
( 46K - Last modified: Oct 13, 2011 - 01:21:04 PM )
Place this file in the doc subdirectory
somewhere in your 'runtimepath'
(~/.vim/doc for Unix) and run
Then you'll be able to do ":help HTML.txt".
(You may view the documentation as HTML here.)
- ChangeLog (text version)
Revision notes for all the files listed here.
- Frequently Asked Questions (text version)
This covers the most frequent support requests I get.
- GUI Toolbar Bitmaps:
( 17K - Last modified: Apr 12, 2011 - 11:30:54 AM )
Extract this in the
bitmaps directory somewhere in your
(~/vim/bitmaps for Unix).
(You may view a montage of the pixmaps here.)
- Browser Launcher (for Unix/Linux):
( 16K - Last modified: Apr 13, 2011 - 04:20:48 PM )
Put browser_launcher.vim in one of the
toplevel directories in your 'runtimepath'
(such as ~/.vim for Unix).
- netscape-remote ( 18K )
This file is optional, and deprecated. It is used by
when mozilla-xremote-client isn't found in
the $PATH—when neither is found it will
fall back to just using firefox/mozilla/netscape
directly. To use it just compile it and put the binary somewhere in your
(This version is slightly tweaked by me. Unfortunately
the original can no longer be found online.)
- Auto-Update Image Tag Size Attributes:
(7.2K - Last modified: Jun 23, 2009 - 08:04:35 AM )
If this file is placed in one of the toplevel directories in your
'runtimepath' it will cause the
";mi" mapping to be defined.
- To use these macros for editing MediaWiki/Wikipedia
(3.2K - Last modified: Aug 15, 2010 - 05:32:53 PM )
in <runtimepath>/ftplugin/. You will also need to read
text editor support page; use this file in place of the filetype
plugin suggested there.
You may either email me or try
my bulletin board.
Some other Vim features and plugins that may be useful for editing (X)HTML:
This script provides functions and mappings to close open HTML/XML tags.
- :help ft-html-omni
For Vim 7.3. Syntax additions for HTML files that enables concealing
of some items. This file should be placed in your
See my main Vim page for more information.
Copyright © 1996-2016 by Christian J. Robinson
September 6, 2011 - 10:49:16 PM MDT