I've been battling with SuSE's VIm implementation since I made the switch from Red Hat some months ago. I find that in insert mode, the backspace key won't go backwards before where I started inserting in a line. In normal use, this is just annoying. When I'm trying to program with cindent set, and I reach the end of an "if" block or such, I can't back up one indention to close the block. I suppose it may be a terminal setting, but I would be loathe to change that, since I don't want to change it on every machine I sit in front of, but I can do that if that's what it takes. Does anyone know what I can set, anywhere, to make this problem go away? I don't even know where to start. Thanks, dk
On Friday 01 August 2003 00:33, David Krider wrote:
I've been battling with SuSE's VIm implementation since I made the switch from Red Hat some months ago. I find that in insert mode, the backspace key won't go backwards before where I started inserting in a line. In normal use, this is just annoying. <snip> Does anyone know what I can set, anywhere, to make this problem go away? I don't even know where to start.
Google is your friend, as it usually is. Googling for "vim backspace" it took about ten minutes to find a working solution. Add this line to your ~/.vimrc : set backspace=2 Hansen -- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3 Netiquette is easy: http://learn.to/edit_messages ...and you'll get flame-free answers in no time.
On Fri, 2003-08-01 at 02:21, Johannes Liedtke wrote:
Google is your friend, as it usually is. Googling for "vim backspace" it took about ten minutes to find a working solution.
Touche'. Incidently, searching on your fix leads to many interesting examples of vimrc files.
Add this line to your ~/.vimrc : set backspace=2
Indeed, this does work like I want it to. I don't know why yet, but it works. Thanks!!! dk
Add this line to your ~/.vimrc : set backspace=2
Indeed, this does work like I want it to. I don't know why yet, but it works.
set backspace=2 (this is deprecated) is equivalent to set backspace=indent, eol, start You are allowed to backspace over autoindents, end-of-lines, and past where you started your insert... HTH Jon
participants (3)
-
David Krider
-
Johannes Liedtke
-
Jonathan Lim