LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2011, 12:35 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Vi: I want backspace to respond in insert mode and not in command mode: possible?


Kernel 2.6.21.5, slackware 12.0
vi 2.2.0
vim 7.1

Hi:
I cant make the backspace key to respond when working in vi. It's set such that it responds in command mode but not in insert mode. In vim one can get help on, say, the backspace key (BS) by typing ':help backspace'. In vi, typing the same thing I get help on help. It's clear to me that I ought to know the name of the topic.

Do you know how to make BS to respond or tell vi to help? Thanks.
 
Old 06-16-2011, 02:19 AM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Not sure about vi but with vim you can add this to your .vimrc

Code:
set backspace=indent,eol,start
 
Old 06-16-2011, 02:26 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

It's been a while since I used slackware, but I do believe that out-of-the-box, vi is linked to elvis.

Mybe these links will help:
- elvis home page
- elvis options (6.5 -> cleantext, ct).

Hope this helps.
 
Old 06-16-2011, 03:48 AM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by druuna View Post
Hi,
It's been a while since I used slackware, but I do believe that out-of-the-box, vi is linked to elvis.
Yes that's still the case.
 
Old 06-16-2011, 07:50 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks for your links (and for your memory). Druuna, could elvis options be found as an info page? It has the typical structure of these pages.

Last edited by stf92; 06-16-2011 at 07:51 AM.
 
Old 06-16-2011, 08:03 AM   #6
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Rep: Reputation: 9
Quote:
Originally Posted by mRgOBLIN View Post
Yes that's still the case.
Why would this be? And how can vi be linked to start vim and not elvis?
 
Old 06-16-2011, 08:34 AM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by george-lappies View Post
Why would this be? And how can vi be linked to start vim and not elvis?
Pat must prefer elvis. You can easily change it.

Code:
rm /usr/bin/vi
ln -s /usr/bin/vim /usr/bin/vi
 
1 members found this post helpful.
Old 06-16-2011, 08:35 AM   #8
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Rep: Reputation: 9
Quote:
Originally Posted by BCarey View Post
Pat must prefer elvis. You can easily change it.

Code:
rm /usr/bin/vi
ln -s /usr/bin/vim /usr/bin/vi
Thanks
 
Old 06-16-2011, 09:26 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by stf92 View Post
Thanks for your links (and for your memory). Druuna, could elvis options be found as an info page? It has the typical structure of these pages.
I truly wouldn't know. If vi is linked to anything else then vim I immediately change it If I look at the elvis manual page it does not mention any info page.
 
Old 06-16-2011, 11:05 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Please druuna, do not worry. I shouldn't have asked for that much. Regards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
insert mode in gedit tgs10 Linux - Newbie 5 03-04-2011 08:42 AM
how to make the cursor in normal mode and insert mode look defferent? tianlijian Linux - Newbie 4 04-07-2009 03:36 AM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 09:36 AM
Super user mode does not respond in SUSE 9.1 ronronson Linux - Newbie 4 06-15-2004 03:51 PM
insert mode in vim usr Linux - Software 1 01-18-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration