[BusyBox 0000025]: vi-editing mode for ash
bugs at busybox.net
bugs at busybox.net
Wed Sep 14 14:01:30 UTC 2005
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=25
======================================================================
Reported By: pgf
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 25
Category: New Features
Reproducibility: always
Severity: feature
Priority: normal
Status: closed
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 01-17-2005 17:58 PST
Last Modified: 09-14-2005 07:01 PDT
======================================================================
Summary: vi-editing mode for ash
Description:
as a long-time vi user, and an editor curmudgeon in general, i missed
having a vi-mode in ash when doing development on or when using a
busybox-based system, so i finally implemented it.
it's not perfect, of course: no undo, no searching, the 'w' and 'b'
commands are actually 'W' and 'B' (vi users will know what i mean), but it
does have 'p', so you can put back what you've deleted (which was necessary
to be able to enter "xp", something my typing demands that i do pretty
often :-).
it builds on top of emacs-mode -- so most (all?) of the emacs commands
(e.g. ^A, ^F, ^B, ^N, ^P) still work while you're "inserting" in vi-mode.
this is either a bug or a feature, but mostly it's just a fallout of the
implementation.
turning on CONFIG_FEATURE_COMMAND_EDITING_VI adds another couple of kbytes
on an x86 system (which is roughly 25% more than emacs-mode by itself).
with luck, i'm not the only person to think this is useful or worthwhile,
and hopefully someone else can try it and offer a comment.
======================================================================
----------------------------------------------------------------------
pgf - 03-24-05 06:23
----------------------------------------------------------------------
i've uploaded a revised version of this patch, that i did a while ago. it
adds the lowercase 'w', 'e', and 'b' commands, which were previously
implemented synonymously with 'W', 'E', and 'B'. these work as motions,
as well as with the 'd' and 'c' delete and change operators.
----------------------------------------------------------------------
pgf - 08-04-05 12:05
----------------------------------------------------------------------
Committed revision 11044.
Issue History
Date Modified Username Field Change
======================================================================
01-17-05 17:58 pgf New Issue
01-17-05 17:58 pgf File Added: vi_mode.pat
03-16-05 12:26 andersen Assigned To andersen => BusyBox
03-24-05 06:18 pgf File Added: vi_mode-v2.pat
03-24-05 06:23 pgf Note Added: 0000117
08-04-05 12:05 pgf Status assigned => resolved
08-04-05 12:05 pgf Resolution open => fixed
08-04-05 12:05 pgf Note Added: 0000381
08-13-05 11:06 swth Issue Monitored: swth
08-14-05 10:46 swth Issue End Monitor: swth
09-14-05 07:01 pgf Status resolved => closed
======================================================================
More information about the busybox-cvs
mailing list