BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000025 [BusyBox] New Features feature always 01-17-05 17:58 09-14-05 07:01
Reporter pgf View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.00
Summary 0000025: 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.
Additional Information
Attached Files  vi_mode.pat [^] (14,093 bytes) 01-17-05 17:58
 vi_mode-v2.pat [^] (15,674 bytes) 03-24-05 06:18

- Relationships

- Notes
(0000117)
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.
 
(0000381)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker