[Gllug] bash / go to beginning of line

Paul Brazier pbrazier at cosmos-uk.co.uk
Tue Feb 19 11:48:11 UTC 2002


> >In bash I'm used to pressing "Home" to get to the beginning 
> of the line.
> >On my Debian server this doesn't seem to work but gives me some other
> >characters (I think ^$ or something).
> 
> You're in vi mode. At the bash prompt, type:
> 
> 	set -o emacs
> 
> to switch to emacs mode, which will give you the key mappings you're
> used to. You can make this change permanent by adding the line:
> 
> 	set editing-mode emacs
> 
> to your $HOME/.inputrc file.
> 
> 
> #ifndef ASBESTOS_SUIT
> #define ASBESTOS_SUIT
> 
> Alternatively, you could learn to use vi keymappings, as the gods
> intended, for as all should know by now, vi is the one true way :-)
> 
> #endif /* ASBESTOS_SUIT */
> 
> Tet

Thanks, that (setting mode to emacs) seems the way to go for me.

Surely if you have a Home key it makes sense to use it for Home-type
things like going to the start of a line? What does vi use it for other
than outputting gobbledygook? /* adding petrol */

Paul.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the originator.

This footnote also confirms that this email message has been checked
for the presence of computer viruses.

**********************************************************************


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list