LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-03-2005, 01:16 PM   #1
mad_pear
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
vim backspace problem (no, not THAT one!)


Hi,

When I'm in insert mode in vim, the backspace key works fine to delete any newly inserted text. However, once it reaches a point where the text was created using an earlier edit, it just beeps and will not erase any further. I've tried several versions of vim (6.2 and 6.3) including a binary that works fine on another linux box (different distribution though), which suggests that its not a problem with the editor itself. Running Slackware 9.1 if it matters, same problem in console mode or kde. Any ideas? Thanks.

Mad
 
Old 03-03-2005, 01:40 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 58
Works fine for me in 6.3

I think your problem is that you are in old-school vi compatible mode. You can test using (in command mode):
Code:
:set compatable?
If the response is "compatible" then edit your vimrc file and add:
Code:
set nocompatible
Save and restart vim...
 
Old 03-03-2005, 10:59 PM   #3
mad_pear
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thanks for pointing me in the right direction. It wasn't the compatibility flag though. I just needed to add

set backspace=start,eol,indent

to my .vimrc file.

Mad
 
Old 07-14-2009, 12:03 AM   #4
mrbass21
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by mad_pear View Post
Hi,

Thanks for pointing me in the right direction. It wasn't the compatibility flag though. I just needed to add

set backspace=start,eol,indent

to my .vimrc file.

Mad
You beautiful bastard. That problem has plagued me forever on a home server and it was annoying me to no end. Thank you! Fixed my problem too.

Edit: Running FreeBSD 6.3 BTW
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backspace Key doesn't work correctly in Vim in Slack 9.1 IBall Slackware 1 04-27-2004 10:07 PM
backspace problem moschi Linux - Newbie 4 03-23-2004 05:30 AM
Backspace problem in Aterm - ^? invisus Linux - Software 0 02-19-2004 01:28 PM
backspace key printing ^? in vim clockworks Linux - General 3 01-23-2004 12:07 PM
Backspace key problem fr0zen Linux - General 0 12-23-2003 02:30 PM


All times are GMT -5. The time now is 03:51 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration