[Gllug] bash / go to beginning of line

Bruce Richardson itsbruce at uklinux.net
Tue Feb 19 12:12:07 UTC 2002


On 2/19/02, 11:48:11 AM, "Paul Brazier" <pbrazier at cosmos-uk.co.uk> wrote 
regarding RE: [Gllug] bash / go to beginning of line :


> 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 */

Vi doesn't use it for anything.  Vi is designed to use a minimal keyset 
(qwerty keys, Escape, shift, backspace, delete).  It does this by being 
modal, so it shifts between treating keypresses as commands and as text 
input.

Since Escape is the mode key and since Home will be sent to the 
console/terminal as an Escape sequence, pressing Home is interpreted as 
something other than you intended.

Modern clones of vi (and readline in vi mode) do recognise the arrow 
keys, if not Home and End, and some heretics actually use them.  If they 
use them in command mode then they should be branded but using them in 
editing mode is a capital offence.

-- 

Bruce

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




More information about the GLLUG mailing list