From ba2acde7ff4431c069f391888d0bec0808be6442 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 10 Sep 2008 10:29:25 +0000 Subject: [PATCH] add an example of use to the help --- locale/en-US/intro.txt | 5 ++--- locale/en-US/map.txt | 13 ++++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/locale/en-US/intro.txt b/locale/en-US/intro.txt index 7371ba70..f42fa800 100644 --- a/locale/en-US/intro.txt +++ b/locale/en-US/intro.txt @@ -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. diff --git a/locale/en-US/map.txt b/locale/en-US/map.txt index 82170aa5..e57a8fbd 100644 --- a/locale/en-US/map.txt +++ b/locale/en-US/map.txt @@ -12,7 +12,7 @@ which are translated to a string of characters. Example: will echo the current date to the command line when [m][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 @@ ________________________________________________________________________________ || |mapleader| + |||| ________________________________________________________________________________ -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 h :echo "Hello"[c] + +works like + +\{nbsp}[c]:map \h :echo "Hello"[c] + +but after + +\{nbsp}[c]let mapleader = ","[c] + +it works like + +\{nbsp}[c]:map ,h :echo "Hello"[c] ________________________________________________________________________________