- Vim Script 83.5%
- C 12.3%
- Makefile 3.1%
- Perl 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| autoload/HTML | ||
| bitmaps | ||
| commands/HTML | ||
| doc | ||
| ftplugin/html | ||
| import/HTML | ||
| json/HTML | ||
| lang | ||
| test | ||
| .gitignore | ||
| LICENSE.md | ||
| Makefile | ||
| README.md | ||
| SECURITY.md | ||
| upload | ||
| version | ||
HTML/XHTML Editing Macros
Note that this plugin requires Vim 9.2 or later; nightly builds are available for Windows at: https://github.com/vim/vim-win32-installer/releases Or semi-frequent builds are available for Windows at: https://tuxproject.de/projects/vim/
This plugin allows for the rapid development of HTML files primarily with the use of macros. For example:
- In normal mode, type
;htmlto insert a configurable template - Use
<Tab>to skip to unfilled parts of the template - Use insert mode ;-mappings to insert tags. For example:
;ppinserts:
<p>
</p>;iminserts <img src="" alt=""> and correctly positions the cursor;brinserts <br>&<inserts <,&>inserts >,&&inserts &- and so on...
;dbin normal mode launches the default browser on the current buffer file- Commands are included to disable and re-enable the mappings, so it is easier to edit JavaScript, PHP, etc.
- The map leaders (
;and&) are configurable, along with many other configuration variables - A menu―including a modified toolbar―is included to allow for reference to tags and their corresponding mappings
Installation
Note: If you have an old installation of this plugin, you need to remove its files first or they may prevent the packed version from loading.
Install using your favorite package manager, or use Vim's built-in package support:
Unix/MacOS
In a terminal type these commands:
mkdir -p ~/.vim/pack/cjr/start
cd ~/.vim/pack/cjr/start
git clone https://github.com/Heptite/HTML.git
Windows
Press Windows+R, type in "cmd" and press Enter. In that window run these
commands:
mkdir %USERPROFILE%\vimfiles\pack\cjr\start
cd %USERPROFILE%\vimfiles\pack\cjr\start
git clone https://github.com/Heptite/HTML.git
After installing using git you can always update by going into the
pack/cjr/start/HTML directory and typing: git pull
Official Website
http://christianrobinson.name/vim/HTML/
This includes extra documentation, alternate install methods, an FAQ, etc.
License
Copyright © 1998 - 2026 Christian J. Robinson
Distributable under the terms of the GNU General Public License, version 3 or later: https://www.gnu.org/licenses/licenses.html#GPL