[Toybox] [PATCH] vi.c changes to vi cmd execution
Jarno Mäkipää
jmakip87 at gmail.com
Mon Apr 22 06:02:36 PDT 2019
Hello
Sorry that this patch got bit too big and its untidy. Next step should be
to clean these basic movement commands and make them all utf-8 aware. And
also handle some special cases with setting up extra flags..
-Jarno
Reimplemented to command mode execution to follow vi cmd pattern.
(REG)[COUNT0]{CMD}[COUNT1]<MOV>(SYM)
Most of the moves can be executed intependently or before command,
some require character after. (possibly with utf8)
Some of the commands do not require move, such as D, J, dd, yy, x...
There is also tons of special cases where move behaves differently
depending on command. For example 1cw and 1ce appear to be the same
but 1dw and 1de are not...
Most of the operations still need reimplementing and lots of cleanup
in order them to behave correctly
refactored word move to work with utf-8
---
toys/pending/vi.c | 390 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 320 insertions(+), 70 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190422/f5392268/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi.c-changes-to-vi-cmd-execution.patch
Type: text/x-patch
Size: 16873 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190422/f5392268/attachment.bin>
More information about the Toybox
mailing list