Improve increment/decrement with leading zeros in vim mode (#18362)
- Closes: 18360 Release Notes: - Added support for incrementing and decrementing numbers with leading zeros
This commit is contained in:
parent
5b745a82e1
commit
34b8655bf6
6 changed files with 139 additions and 22 deletions
|
@ -0,0 +1,8 @@
|
|||
{"Put":{"state":"00ˇ1\n"}}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"00ˇ0\n","mode":"Normal"}}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"-00ˇ1\n","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"00ˇ1\n","mode":"Normal"}}
|
|
@ -0,0 +1,6 @@
|
|||
{"Put":{"state":"099ˇ9\n"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"100ˇ0\n","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"99ˇ8\n","mode":"Normal"}}
|
|
@ -0,0 +1,6 @@
|
|||
{"Put":{"state":"000ˇ9\n"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"001ˇ0\n","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"000ˇ8\n","mode":"Normal"}}
|
|
@ -0,0 +1,7 @@
|
|||
{"Put":{"state":"01ˇ1\n"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"01ˇ2\n","mode":"Normal"}}
|
||||
{"Key":"1"}
|
||||
{"Key":"2"}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"00ˇ0\n","mode":"Normal"}}
|
|
@ -0,0 +1,4 @@
|
|||
{"Put":{"state":"001ˇ0\n"}}
|
||||
{"Key":"10"}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"000ˇ9\n","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue