Click to See Complete Forum and Search --> : vim backspace
Petrolhead
08-10-2003, 02:15 AM
Hi,
The backspace key on vim spits out a '^?' when pressed.
Anyone know how to fix this? Do I need to edit the .vimrc?
I dont think I have this file under my home dir
0x12d3
08-10-2003, 02:42 AM
I'm not sure how you fix this. Most folk go to control mode and use the 'x' key as backspace. Good luck w/ yer keybinding though --.vimrc sounds like a good start.
mdwatts
08-10-2003, 06:25 AM
These G4L search results for 'vim backspace' (http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=vim+backspace) will tell you what you need to add/modify in vimrc.
Petrolhead
08-10-2003, 12:40 PM
got it..!(well partially atleast :-))
put "fixdel" in your .vimrc file
This will make your backspace kep work like the delete key but its not exactly the fix I was looking for, close enough though
bs_texas
08-10-2003, 01:59 PM
I have a .vimrc file on my LFS system, and it includes a line:
set bs=2
You might try that.
That's similar to what I saw in one of the hits on mdwatts post above that said to use:
:set backspace=2
Interesting that I don't have .vimrc file on my red hat 8 machine or my slackware 9 machine and on both I chose to install everything.
regards...
Petrolhead
08-10-2003, 02:30 PM
set bs=2
does'nt help..
You might have .viminfo
mdwatts
08-10-2003, 02:37 PM
The global vim config on my distro is /etc/vimrc while the users is /home/<user>/.viminfo.
mdwatts
08-10-2003, 02:39 PM
Has anyone suggested the JL Help File on 'Customizing VIM' (http://justlinux.com/nhf/Tools/Customizing_vim.html)?
rid3r
08-10-2003, 02:51 PM
imho, you should set both:
set nocompatible
set backspace=indent,eol,start
$ locate vimrc
/usr/share/vim/vim61/vimrc_example.vim
$ cat /usr/share/vim/vim61/vimrc_example.vim > $HOME/.vimrc
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.