I use "vi command editing" in bash. This means while editing a command I
can 'esc' to command mode and then move around the line (and history) using
vi commands, hjkl0$ ... 

Also while in command mode, if I use "v" my $EDITOR starts (vim) with the
command in a tmp file. When I exit $EDITOR the commands in my buffer will
be executed. I ":w filename" and then remove the contents of the buffer (so
nothing is executed) and then start working on filename.

on Thu, Apr 04, 2002 at 11:04:47AM +0800, henry <[EMAIL PROTECTED]> wrote:
> Dear List :
> 
> Often I made a long command, then I found it's useful ,
> I hope to cut it from screen to a shell script ,say my.sh .
> I usr lots of ways to try it (say, as follows).
> > echo  "cd /usr/src/linux/arch..........."    >         my.sh
> Could someone help this ?
>  
> 
> 
> TIA
> Henry
> 
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to