Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 

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 ;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 &lt;, &> inserts &gt;, && inserts &amp;
    • 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

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

mkdir -p ~/.vim/pack/cjr/start
cd ~/.vim/pack/cjr/start
git clone https://github.com/Heptite/HTML.git

Windows

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: git pull

Official Website

http://christianrobinson.name/vim/HTML/

This includes extra documentation, alternate install methods, an FAQ, etc.

License

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

About

HTML/XHTML editing macros for Vim 9 or later

Topics

Resources

Releases

No releases published

Packages

No packages published