1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:22:26 +01:00

Document . mapping

This commit is contained in:
Kris Maglione
2008-10-11 14:41:09 +00:00
parent f95f1238b5
commit e0fd2718e8
4 changed files with 18 additions and 4 deletions

1
NEWS
View File

@@ -7,6 +7,7 @@
special versions for the old behavior special versions for the old behavior
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and * IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
VimperatorLeave respectively VimperatorLeave respectively
* add . mapping
* add N% normal mode command * add N% normal mode command
* add interpolation for items such as <url> to autocommands * add interpolation for items such as <url> to autocommands
* add -nargs, -bang, and -count attribute support to :command * add -nargs, -bang, and -count attribute support to :command

View File

@@ -469,11 +469,15 @@ liberator.Buffer = function () //{{{
liberator.mappings.add(modes, ["."], liberator.mappings.add(modes, ["."],
"Repeat the last key event", "Repeat the last key event",
function () function (count)
{ {
if (liberator.mappings.repeat) if (liberator.mappings.repeat)
liberator.mappings.repeat(); {
}); for (let i in liberator.util.range(0, count || 1))
liberator.mappings.repeat();
}
},
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["i", "<Insert>"], liberator.mappings.add(modes, ["i", "<Insert>"],
"Start caret mode", "Start caret mode",

View File

@@ -292,7 +292,7 @@ liberator.Completion = function () //{{{
{ {
case "(": case "(":
/* Function call, or if/while/for/... */ /* Function call, or if/while/for/... */
if (/\w$/.test(lastNonwhite)) if (/\w\d$/.test(lastNonwhite))
{ {
top[FUNCTIONS].push(i); top[FUNCTIONS].push(i);
top[STATEMENTS].pop(); top[STATEMENTS].pop();

View File

@@ -48,6 +48,15 @@ Replay the last executed macro [count] times.
____________________________________________________________________________ ____________________________________________________________________________
|.|
||[count].|
____________________________________________________________________________
Repeat the last keyboard mapping [count] times. Note that, unlike in vim, this
does not apply solely to editing commands, mainly because Vimperator doesn't
have them.
____________________________________________________________________________
section:Using{nbsp}scripts[using-scripts] section:Using{nbsp}scripts[using-scripts]
|:so| |:source| |:so| |:source|