backspace not working, even after attempted fix
I tried following the instructions in Backspace key not working in vim , but I still have the same problem: BACKSPACE inserts a ^?
That is to say: inserting set bs=indent,eol,start
in my ~/.vimrc
did not solve the problem.
I am sure that I am loading the correct source file (I did a test of another setting, and the change propagated).
I am using: Vi IMproved 7.2
on Ubuntu with Gnome. In the terminal application, backspace works properly.
vim backspace
add a comment |
I tried following the instructions in Backspace key not working in vim , but I still have the same problem: BACKSPACE inserts a ^?
That is to say: inserting set bs=indent,eol,start
in my ~/.vimrc
did not solve the problem.
I am sure that I am loading the correct source file (I did a test of another setting, and the change propagated).
I am using: Vi IMproved 7.2
on Ubuntu with Gnome. In the terminal application, backspace works properly.
vim backspace
add a comment |
I tried following the instructions in Backspace key not working in vim , but I still have the same problem: BACKSPACE inserts a ^?
That is to say: inserting set bs=indent,eol,start
in my ~/.vimrc
did not solve the problem.
I am sure that I am loading the correct source file (I did a test of another setting, and the change propagated).
I am using: Vi IMproved 7.2
on Ubuntu with Gnome. In the terminal application, backspace works properly.
vim backspace
I tried following the instructions in Backspace key not working in vim , but I still have the same problem: BACKSPACE inserts a ^?
That is to say: inserting set bs=indent,eol,start
in my ~/.vimrc
did not solve the problem.
I am sure that I am loading the correct source file (I did a test of another setting, and the change propagated).
I am using: Vi IMproved 7.2
on Ubuntu with Gnome. In the terminal application, backspace works properly.
vim backspace
vim backspace
edited Mar 20 '17 at 10:16
Community♦
1
1
asked Jun 2 '11 at 1:32
dsgdsg
54421224
54421224
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Vim seems to be confused about what your terminal sends as the erase character. As this varies between ^?
(Ctrl+?, or DEL
for "delete") and ^H
(Ctrl+H or BS
for "backspace"), Vim depends on someone telling it what to expect.
That shouldn't happen unless
- you're changing related settings in your
vimrc
, - you're changing the value of the
TERM
environment variable, - your terminal information database is messed up, or
- you're suffering from a gremlin infestation.
For troubleshooting, try to run the command stty erase ^?
before starting Vim, and see if this fixes it. Enter the ^?
not separately as ^
and ?
, but by first pressing Ctrl+V, then your Backspace key. If your shell is well-behaved, this should produce a literal representation of whatever your terminal sends when you hit that key.
Thanks,stty erase ^?
worked for me. I added it to my.bashrc
file.
– dsg
Jun 3 '11 at 2:50
add a comment |
Found this question while searching for something mildly related, and thought I'd post a pedantic (but possibly helpful) follow-up.
Most modern versions of stty(1) (including the version shipped with GNU Coreutils) interpret the two-character sequences ^
?
and ^
h
as the control sequence ASCII DEL and ASCII BS (respectively). Or more generally, two-character sequences starting with ^
as their equivalent ASCII control character.
So the two following commands are equivalent:
stty erase '^?'
stty erase ^VDEL
add a comment |
If you are using gnome-terminal then there should be a setting to have backspace emulate ^H. There are similar settings in other terminal emulators; it's the first place I would go since no one else has mentioned it.
add a comment |
Try adding the following to your .bashrc ( or .profile )
stty erase ^H
That is the character "^" followed by the character "H"
--or--
If that does not work, to get "^H" type control-V followed by control-H
See vim help
:help gui-pty-erase
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f291860%2fbackspace-not-working-even-after-attempted-fix%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Vim seems to be confused about what your terminal sends as the erase character. As this varies between ^?
(Ctrl+?, or DEL
for "delete") and ^H
(Ctrl+H or BS
for "backspace"), Vim depends on someone telling it what to expect.
That shouldn't happen unless
- you're changing related settings in your
vimrc
, - you're changing the value of the
TERM
environment variable, - your terminal information database is messed up, or
- you're suffering from a gremlin infestation.
For troubleshooting, try to run the command stty erase ^?
before starting Vim, and see if this fixes it. Enter the ^?
not separately as ^
and ?
, but by first pressing Ctrl+V, then your Backspace key. If your shell is well-behaved, this should produce a literal representation of whatever your terminal sends when you hit that key.
Thanks,stty erase ^?
worked for me. I added it to my.bashrc
file.
– dsg
Jun 3 '11 at 2:50
add a comment |
Vim seems to be confused about what your terminal sends as the erase character. As this varies between ^?
(Ctrl+?, or DEL
for "delete") and ^H
(Ctrl+H or BS
for "backspace"), Vim depends on someone telling it what to expect.
That shouldn't happen unless
- you're changing related settings in your
vimrc
, - you're changing the value of the
TERM
environment variable, - your terminal information database is messed up, or
- you're suffering from a gremlin infestation.
For troubleshooting, try to run the command stty erase ^?
before starting Vim, and see if this fixes it. Enter the ^?
not separately as ^
and ?
, but by first pressing Ctrl+V, then your Backspace key. If your shell is well-behaved, this should produce a literal representation of whatever your terminal sends when you hit that key.
Thanks,stty erase ^?
worked for me. I added it to my.bashrc
file.
– dsg
Jun 3 '11 at 2:50
add a comment |
Vim seems to be confused about what your terminal sends as the erase character. As this varies between ^?
(Ctrl+?, or DEL
for "delete") and ^H
(Ctrl+H or BS
for "backspace"), Vim depends on someone telling it what to expect.
That shouldn't happen unless
- you're changing related settings in your
vimrc
, - you're changing the value of the
TERM
environment variable, - your terminal information database is messed up, or
- you're suffering from a gremlin infestation.
For troubleshooting, try to run the command stty erase ^?
before starting Vim, and see if this fixes it. Enter the ^?
not separately as ^
and ?
, but by first pressing Ctrl+V, then your Backspace key. If your shell is well-behaved, this should produce a literal representation of whatever your terminal sends when you hit that key.
Vim seems to be confused about what your terminal sends as the erase character. As this varies between ^?
(Ctrl+?, or DEL
for "delete") and ^H
(Ctrl+H or BS
for "backspace"), Vim depends on someone telling it what to expect.
That shouldn't happen unless
- you're changing related settings in your
vimrc
, - you're changing the value of the
TERM
environment variable, - your terminal information database is messed up, or
- you're suffering from a gremlin infestation.
For troubleshooting, try to run the command stty erase ^?
before starting Vim, and see if this fixes it. Enter the ^?
not separately as ^
and ?
, but by first pressing Ctrl+V, then your Backspace key. If your shell is well-behaved, this should produce a literal representation of whatever your terminal sends when you hit that key.
answered Jun 2 '11 at 2:37
pethpeth
7,22022439
7,22022439
Thanks,stty erase ^?
worked for me. I added it to my.bashrc
file.
– dsg
Jun 3 '11 at 2:50
add a comment |
Thanks,stty erase ^?
worked for me. I added it to my.bashrc
file.
– dsg
Jun 3 '11 at 2:50
Thanks,
stty erase ^?
worked for me. I added it to my .bashrc
file.– dsg
Jun 3 '11 at 2:50
Thanks,
stty erase ^?
worked for me. I added it to my .bashrc
file.– dsg
Jun 3 '11 at 2:50
add a comment |
Found this question while searching for something mildly related, and thought I'd post a pedantic (but possibly helpful) follow-up.
Most modern versions of stty(1) (including the version shipped with GNU Coreutils) interpret the two-character sequences ^
?
and ^
h
as the control sequence ASCII DEL and ASCII BS (respectively). Or more generally, two-character sequences starting with ^
as their equivalent ASCII control character.
So the two following commands are equivalent:
stty erase '^?'
stty erase ^VDEL
add a comment |
Found this question while searching for something mildly related, and thought I'd post a pedantic (but possibly helpful) follow-up.
Most modern versions of stty(1) (including the version shipped with GNU Coreutils) interpret the two-character sequences ^
?
and ^
h
as the control sequence ASCII DEL and ASCII BS (respectively). Or more generally, two-character sequences starting with ^
as their equivalent ASCII control character.
So the two following commands are equivalent:
stty erase '^?'
stty erase ^VDEL
add a comment |
Found this question while searching for something mildly related, and thought I'd post a pedantic (but possibly helpful) follow-up.
Most modern versions of stty(1) (including the version shipped with GNU Coreutils) interpret the two-character sequences ^
?
and ^
h
as the control sequence ASCII DEL and ASCII BS (respectively). Or more generally, two-character sequences starting with ^
as their equivalent ASCII control character.
So the two following commands are equivalent:
stty erase '^?'
stty erase ^VDEL
Found this question while searching for something mildly related, and thought I'd post a pedantic (but possibly helpful) follow-up.
Most modern versions of stty(1) (including the version shipped with GNU Coreutils) interpret the two-character sequences ^
?
and ^
h
as the control sequence ASCII DEL and ASCII BS (respectively). Or more generally, two-character sequences starting with ^
as their equivalent ASCII control character.
So the two following commands are equivalent:
stty erase '^?'
stty erase ^VDEL
answered Mar 23 '12 at 17:34
David KlannDavid Klann
111
111
add a comment |
add a comment |
If you are using gnome-terminal then there should be a setting to have backspace emulate ^H. There are similar settings in other terminal emulators; it's the first place I would go since no one else has mentioned it.
add a comment |
If you are using gnome-terminal then there should be a setting to have backspace emulate ^H. There are similar settings in other terminal emulators; it's the first place I would go since no one else has mentioned it.
add a comment |
If you are using gnome-terminal then there should be a setting to have backspace emulate ^H. There are similar settings in other terminal emulators; it's the first place I would go since no one else has mentioned it.
If you are using gnome-terminal then there should be a setting to have backspace emulate ^H. There are similar settings in other terminal emulators; it's the first place I would go since no one else has mentioned it.
edited Nov 6 '15 at 21:19
fixer1234
18.8k144982
18.8k144982
answered Jun 2 '11 at 4:27
elcashelcash
1664
1664
add a comment |
add a comment |
Try adding the following to your .bashrc ( or .profile )
stty erase ^H
That is the character "^" followed by the character "H"
--or--
If that does not work, to get "^H" type control-V followed by control-H
See vim help
:help gui-pty-erase
add a comment |
Try adding the following to your .bashrc ( or .profile )
stty erase ^H
That is the character "^" followed by the character "H"
--or--
If that does not work, to get "^H" type control-V followed by control-H
See vim help
:help gui-pty-erase
add a comment |
Try adding the following to your .bashrc ( or .profile )
stty erase ^H
That is the character "^" followed by the character "H"
--or--
If that does not work, to get "^H" type control-V followed by control-H
See vim help
:help gui-pty-erase
Try adding the following to your .bashrc ( or .profile )
stty erase ^H
That is the character "^" followed by the character "H"
--or--
If that does not work, to get "^H" type control-V followed by control-H
See vim help
:help gui-pty-erase
edited Jun 2 '11 at 5:59
answered Jun 2 '11 at 5:53
broomdodgerbroomdodger
1,420105
1,420105
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f291860%2fbackspace-not-working-even-after-attempted-fix%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown