HTML.zip ( Version: 0.42.5 - 72K - Last modified: Feb 02, 2020 - 02:41:36 PM ) – 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 will not interfere if you edit other files in the same vim session.
First you should put "filetype plugin on" in your vimrc.
To install from the zip file
Extract HTML.zip (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 vim.
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.
- Vimball can not properly store binary data, so if you are 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 historical reasons.
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):
- HTML.vba (242K - Last modified: Feb 02, 2020 - 02:41:37 PM )
- HTML.vba.gz ( 58K - Last modified: Feb 02, 2020 - 02:41:37 PM )
- HTML.vba.bz2 ( 53K - Last modified: Feb 02, 2020 - 02:41:37 PM )
Then edit the file and type ":source %". If all went well you are done.
Put "HTML.vim" ( 149K - Last modified: Feb 02, 2020 - 02:40:48 PM ) in your ftplugin/html subdirectory somewhere in your 'runtimepath', then install the files below that you want.
To install for old versions of Vim
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 0.33.1.
Other old versions can be found here.
These files—except the HTML version of the documentation, the ChangeLog, and wikipedia.vim—are included in the HTML.zip & HTML.vba files (see "installation" above).
( 52K - Last modified: Feb 02, 2020 - 02:40:32 PM )
Place this file in the doc subdirectory somewhere in your 'runtimepath' (~/.vim/doc for Unix) and run ":helptags <directory>/doc". Then you will 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.
- HTML.txt ( 52K - Last modified: Feb 02, 2020 - 02:40:32 PM )
- GUI Toolbar Bitmaps:
vim-html-pixmaps.zip ( 17K - Last modified: Jan 24, 2020 - 09:16:45 PM )
Extract this in the bitmaps directory somewhere in your 'runtimepath' (~/vim/bitmaps for Unix). (You may view a montage of the pixmaps here.)
- Browser Launcher (for Unix/Linux):
browser_launcher.vim ( 15K - Last modified: Feb 02, 2020 - 02:41:18 PM )
Put browser_launcher.vim in one of the toplevel directories in your 'runtimepath' (such as ~/.vim for Unix).
- Auto-Update Image Tag Size Attributes:
MangleImageTag.vim (7.2K - Last modified: Jan 25, 2020 - 03:38:24 PM )
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
Put wikipedia.vim (3.2K - Last modified: Apr 14, 2018 - 05:44:28 PM ) in <runtimepath>/ftplugin/. You will also need to read Wikipedia's text editor support page; use this file in place of the filetype plugin suggested there.
Some other Vim features and plugins that may be useful for editing (X)HTML: