HTML/XHTML Editing Macros
Note that this plugin requires Vim 9 or later, or at least a very recently patched Vim 8.2, 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
<Tab>to skip to unfilled parts of the template
- Use insert mode ;-mappings to insert tags. For example:
;iminserts <img src="" alt=""> and correctly positions the cursor
- and so on...
;dbin normal mode launches the default browser on the current buffer file
- The map leaders (
&) 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
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:
mkdir -p ~/.vim/pack/cjr/start cd ~/.vim/pack/cjr/start git clone https://github.com/Heptite/HTML.git
Press Windows+R and type in "cmd" 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:
This includes extra documentation, alternate install methods, an FAQ, etc.
Copyright © 1998 - 2021 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