Note that this plugin requires Vim 9 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
;html
to insert a configurable template - Use
<Tab>
to skip to unfilled parts of the template - Use insert mode ;-mappings to insert tags. For example:
;pp
inserts:
<p>
</p>;im
inserts <img src="" alt=""> and correctly positions the cursor;br
inserts <br>&<
inserts <,&>
inserts >,&&
inserts &- and so on...
;db
in 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
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:
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
Press Windows+R and type in "cmd" and 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
http://christianrobinson.name/vim/HTML/
This includes extra documentation, alternate install methods, an FAQ, etc.
Copyright © 1998 - 2024 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