1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 16:34:12 +01:00

add an example of <Leader> use to the help

This commit is contained in:
Doug Kearns
2008-09-10 10:29:25 +00:00
parent de6b32af54
commit ba2acde7ff
2 changed files with 12 additions and 6 deletions

View File

@@ -59,11 +59,10 @@ section:Help{nbsp}topics[overview]
- help:Tabs[tabs.html]: Managing your tabbed browsing session.
- help:Hints[hints.html]: Selecting hyperlinks.
- help:Key{nbsp}mapping{nbsp}and{nbsp}abbreviations[map.html]: Defining new key
mappings.
mappings, abbreviations and user commands.
- help:Expression{nbsp}evaluation[eval.html]: Executing JavaScript.
- help:Marks[marks.html]: Using bookmarks, QuickMarks, history and local marks.
- help:Repeating{nbsp}commands[repeat.html]: Using macros and user commands to
repeat recurring workflows.
- help:Repeating{nbsp}commands[repeat.html]: Using macros to repeat recurring workflows.
- help:Autocommands[autocommands.html]: Automatically executing code on certain
events.
- help:Print[print.html]: Printing pages.

View File

@@ -12,7 +12,7 @@ which are translated to a string of characters. Example:
will echo the current date to the command line when [m]<F2>[m] is pressed.
There are separate key mapping tables for each of the Normal, and Insert,
There are separate key mapping tables for each of the Normal, Insert,
Command-line modes.
|:map-special-chars| +
@@ -37,8 +37,15 @@ ________________________________________________________________________________
|<Leader>| |mapleader| +
||<Leader>||
________________________________________________________________________________
Expands to the value of the "mapleader" variable in key mapping. If
"mapleader" is unset or empty then "\" is used.
Expands to the value of the "mapleader" variable in key mapping. If
"mapleader" is unset or empty then "\" is used. Example: +
\{nbsp}[c]:map <Leader>h :echo "Hello"<CR>[c] +
works like +
\{nbsp}[c]:map \h :echo "Hello"<CR>[c] +
but after +
\{nbsp}[c]let mapleader = ","[c] +
it works like +
\{nbsp}[c]:map ,h :echo "Hello"<CR>[c]
________________________________________________________________________________