Unix Technical Forum

VI at the command line and backspace

This is a discussion on VI at the command line and backspace within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Mohun Biswas wrote: > Chris Vidal wrote: > >> SunOS action9 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V240 >> >> How ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-06-2008, 02:05 PM
Beardy
 
Posts: n/a
Default Re: VI at the command line and backspace

Mohun Biswas wrote:
> Chris Vidal wrote:
>
>> SunOS action9 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V240
>>
>> How to I enable vi as my default command line editor and keep the back
>> space
>> from echoing ^H instead of moving the cursor back one Char.

>
>
> I suspect that all the previous responses have misunderstood the
> question. I think he wants to use vi *command-line editing mode* within
> his shell. And of course the answer to that depends on the shell, but
> for ksh and bash it's "set -o vi".
>


I agree, but if you read the OP's post, the phrase "...and keep the back
space from echoing ^H instead of moving the cursor back one Char..." is
a double-negative (if not also grammatically incorrect). How do you keep
something from happening, instead of doing something else? Maybe the
backspace key should print the word "banana" or something :-)

Definitely set -o vi and stty erase ^H is prob the OP's answer...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com