Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Syntax of Map command
wasavi has three maps as follows:
- normal map: referenced to normal mode
- bound map: referenced to bound/bound_line mode
- input map: referenced to insert/overwrite mode
The ex command
map! manipulates these maps. By default,
map handles both normal map and bound map. On the other hand,
map! handles input map. You can change which map the command handles with "attribute" described below.
map! commands can take 0 to 2 arguments. In addition, attribute can be placed before arguments. An attribute is comma-delimited string whose first character is
[ and last character is
Valid component of attribute is either the above map name (
noremap. If the attribute contains map names, that map are selected instead of the default maps.
If the attribute contains
clear, all the rules defined for the selected maps will be deleted. Arguments are not used.
:map [normal, clear]
When there is no argument
map! commands shows all the rules defined for the selected maps.
:map [normal, input]
When there is one argument
map! commands shows all the rules whose argument partially match the rule's LHS.
:map [bound] g
When there are two arguments
map! commands registers a rule for all selected maps with first argument as LHS and second argument as RHS. If the attribute includes
noremap, the rule is registered as non-recursive.
:map gh ^
:map [normal, final] gh ^