[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] [BusyBox 0000025]: vi-editing mode for ash
From:       bugs () busybox ! net
Date:       2005-03-24 14:23:12
Message-ID: 26dee5ae055936a4efc2eec32bcca660 () bugs ! busybox ! net
[Download RAW message or body]

A NOTE has been added to this issue.
======================================================================
<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:                     assigned
======================================================================
Date Submitted:             01-17-2005 17:58 PST
Last Modified:              03-24-2005 06:23 PST
======================================================================
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.

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                          
======================================================================



_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic