4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: v:count is set only after typing a non-digit, that makes it
12 difficult to make a nice mapping.
13 Solution: Set v:count while still typing the count.
17 *** ../vim-7.1.139/src/normal.c Thu Sep 13 18:25:08 2007
18 --- src/normal.c Sun Oct 14 17:15:36 2007
22 ca.count0 = ca.count0 * 10 + (c - '0');
23 if (ca.count0 < 0) /* got too large! */
24 ca.count0 = 999999999L;
26 + /* Set v:count here, when called from main() and not a stuffed
27 + * command, so that v:count can be used in an expression mapping
28 + * right after the count. */
29 + if (toplevel && stuff_empty())
30 + set_vcount(ca.count0, ca.count0 == 0 ? 1 : ca.count0);
35 *** ../vim-7.1.139/src/version.c Sun Oct 14 15:32:10 2007
36 --- src/version.c Sun Oct 14 17:13:15 2007
40 { /* Add new patch number below this line */
46 How To Keep A Healthy Level Of Insanity:
47 11. Specify that your drive-through order is "to go".
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\ download, build and distribute -- http://www.A-A-P.org ///
52 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///