[ale] question about vi and bash

Chuck Payne terrorpup at gmail.com
Thu May 5 14:36:52 EDT 2011


On Thu, May 5, 2011 at 2:04 PM, Lightner, Jeff <JLightner at water.com> wrote:
> Oops
> ^ = start of line
> $ = end of line
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
> Lightner, Jeff
> Sent: Thursday, May 05, 2011 1:55 PM
> To: Atlanta Linux Enthusiasts
> Subject: Re: [ale] question about vi and bash
>
> You can use the standard vi commands:
>
> Ctrl-v = Start of line
> $ = End of line
>
> Like your co-worker I do "set -o vi" every time I use bash because I
> like the vi commands for command line edition AND I can hit "v" to put
> the line into a full screen editing mode when I want to use it as the
> basis for a script I'm building.
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
> Chuck Payne
> Sent: Thursday, May 05, 2011 1:41 PM
> To: Atlanta Linux Enthusiasts - Yes! We run Linux!
> Subject: [ale] question about vi and bash
>
> Hey guys, I have a question. I co-worker of mine love to set bash up
> so that commands are more live vi, in the profile he has the
> following...
>
> set -o vi
>
> Well, I can't do a lot of my keys that I am use to
>
> ctrl-a = the begin of a line
> crtl-e = the end of a line
>
> I have found that 0 will do teh same as ctrl-a, but $ does the same
> ctrl-e, but how do I do that when I am on the command line.
>
> --
> (678) 636-9678
> -----------------------------------------
> Discover it! Enjoy it! Share it! openSUSE Linux.
> -----------------------------------------
> openSUSE -- en.opensuse.org/User:Terrorpup
> openSUSE Ambassador/openSUSE Member
> skype,twiiter,identica,friendfeed -- terrorpup
> freenode(irc) --terrorpup/lupinstein
> Register Linux Userid: 155363
>
> Have you tried SUSE Studio? Need to create a Live CD,  an app you want
> to package and distribute , or create your own linux distro. Give SUSE
> Studio a try. www.susestudio.com.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
> Proud partner. Susan G. Komen for the Cure.
>
> Please consider our environment before printing this e-mail or
> attachments.
> ----------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or
> confidential information and is for the sole use of the intended
> recipient(s). If you are not the intended recipient, any disclosure,
> copying, distribution, or use of the contents of this information is
> prohibited and may be unlawful. If you have received this electronic
> transmission in error, please reply immediately to the sender that you
> have received the message in error, and delete it. Thank you.
> ----------------------------------
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>

@Jim it cool, because I know vi.


Ok, it seems to do the vi stuff on bash like my emacs, you have to
press the "Esc" then you can do all your lovely vi.

http://www.hypexr.org/bash_tutorial.php

Who knew. I love vi as an editor, and love my bash to be emacs'ie.


-- 
(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.



More information about the Ale mailing list