]> git.gir.st - VimFx.git/commit
Allow to use numbers as shortcuts, overriding counts
authorSimon Lydell <simon.lydell@gmail.com>
Wed, 11 Nov 2015 06:51:49 +0000 (07:51 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Wed, 11 Nov 2015 06:51:49 +0000 (07:51 +0100)
commite552942ccd8a00fd8c5906c819ef51207f65719e
treee6811e012b1f32ee0928d00c301659b3b1785f69
parentbb948cb85eb3b71c0a90321f45862e26935fb223
Allow to use numbers as shortcuts, overriding counts

... properly handling the special-case for `0`:

- `0J` is _not_ a count, because a count of zero makes no sense. It first
  invokes the `0` command, and then the `J` command.
- `20J` _is_ a count, repeating twenty times. In other words, pressing `2` and
  then `0` does _not_ run the `0` command (scroll to the far left) with a count
  of two. Instead, it sets the waiting count to twenty.

Fixes #587.
extension/lib/vimfx.coffee
Imprint / Impressum