HTML/XHTML Editing Macros: Frequently Asked Questions
- How do I disable the tab mapping?
- How do I prevent the plugin from overriding mappings I have defined?
- How do I disable any mapping?
- How do I make the mappings insert uppercase tags instead of lowercase?
- How do I make the mappings insert XHTML tags?
- How do I change the map leader from ; or the character entities map leader from & to something else?
- I installed the vimball archive under windows and the toolbar icons do not display properly.
- Is there an HTML/XHTML strict mode for the mappings?
You can disable the default tab mapping by putting "
g:no_html_tab_mapping = 'yes'" in your vimrc.
This will change the default tab mapping to
You can prevent the plugin from overriding a mapping you have defined
elsewhere—such as in your ~/.vimrc—by putting "
g:no_html_map_override = 'yes'" in your vimrc.
You can disable any mapping that the plugin defines by putting a pattern
that will match it in "
g:no_html_maps", which is a regular
expression. For example, to disable the
;im mappings for all modes, put "
:let g:no_html_maps =
'^\(;ah\|;im\)$'" in your vimrc.
Mappings that match this pattern will be suppressed regardless of the mode
the mapping is for, and the pattern will not undergo
You can make the output of the mappings uppercase by putting "
g:html_tag_case = 'uppercase'" in your vimrc.
You can make the mappings output transitional XHTML by putting "
g:do_xhtml_mappings = 'yes'" in your vimrc.
6. How do I change the map leader from ; or the character entities map leader from & to something else?
You can change the default leader from "
;" to something
_" for example—by putting "
g:html_map_leader = '_'" in your vimrc.
You may also change the leader for the &-mappings by putting something
:let g:html_map_entities_leader = '\'" in your vimrc.
You can temporarily turn off all the mappings for the current buffer by
:HTMLmappings disable" within Vim. You can re-enable
them with "
You can shorten the command to just "
:HTML" and the arguments
off" and "
on" are valid.
If you are on a Windows based system, the provided toolbar icons in BMP form will not be usable from the VBA files. This is due to a bug in Vimball that will hopefully be fixed in the future. In the meantime, either use the ZIP archive or manually extract the pixmaps ZIP file in your bitmaps directory after installing the Vimball.
[The BMP files are no longer included in the Vimball by default.]
No, because it is assumed that when an author wants strict (X)HTML he will not use the mappings that output transitional tags.
The only concession to strict mode is the "