[Toybox] [PATCH] vi: small fixes.

Jarno Mäkipää jmakip87 at gmail.com
Sat Sep 7 12:23:00 PDT 2019


I apologize for potentially being responsible of destroying config
files on your device :-)

Happy to hear someone already tried to use it. There will be some
problems with files that has non UNIX line-endings also tabs will be
replaced by spaces etc...
But for task like changing variable or commenting out few lines it
might come handy when there is nothing else available.

I'm trying to find time and motivation to continue working on this,
now as the summer has past.

-Jarno

On Sat, Sep 7, 2019 at 10:20 AM enh via Toybox <toybox at lists.landley.net> wrote:
>
> I really needed to be able to edit a file on the device, and this was
> the nearest thing handy, and it turns out to be more or less usable for
> basic editing, so...
>
> Support cursor keys.
>
> Support :q (since there's currently no record of whether the file's
> modified or not, :q is the same as :q!).
>
> Add 'A' to insert at end of line.
>
> Add 'n' to find next after '/'.
>
> Fix backspace all the way to get out of ex command mode.
>
> Fix escape sequences to not hard-code assumptions about the terminal's
> default background and foreground colors.
>
> Fix 'spesial' typo for 'special', and remove explicit array sizes.
> ---
>  toys/pending/vi.c | 109 ++++++++++++++++++++++++++++------------------
>  1 file changed, 66 insertions(+), 43 deletions(-)
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net



More information about the Toybox mailing list