backspace not working, even after attempted fix












7















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.










share|improve this question





























    7















    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.










    share|improve this question



























      7












      7








      7


      2






      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 '17 at 10:16









      Community

      1




      1










      asked Jun 2 '11 at 1:32









      dsgdsg

      54421224




      54421224






















          4 Answers
          4






          active

          oldest

          votes


















          6














          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.






          share|improve this answer
























          • Thanks, stty erase ^? worked for me. I added it to my .bashrc file.

            – dsg
            Jun 3 '11 at 2:50



















          1














          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





          share|improve this answer































            1














            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.



            Accessing profile in gnome-terminal



            Setting backspace behavior






            share|improve this answer

































              0














              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






              share|improve this answer

























                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
                });


                }
                });














                draft saved

                draft discarded


















                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









                6














                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.






                share|improve this answer
























                • Thanks, stty erase ^? worked for me. I added it to my .bashrc file.

                  – dsg
                  Jun 3 '11 at 2:50
















                6














                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.






                share|improve this answer
























                • Thanks, stty erase ^? worked for me. I added it to my .bashrc file.

                  – dsg
                  Jun 3 '11 at 2:50














                6












                6








                6







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                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



















                • 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













                1














                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





                share|improve this answer




























                  1














                  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





                  share|improve this answer


























                    1












                    1








                    1







                    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





                    share|improve this answer













                    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






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 23 '12 at 17:34









                    David KlannDavid Klann

                    111




                    111























                        1














                        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.



                        Accessing profile in gnome-terminal



                        Setting backspace behavior






                        share|improve this answer






























                          1














                          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.



                          Accessing profile in gnome-terminal



                          Setting backspace behavior






                          share|improve this answer




























                            1












                            1








                            1







                            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.



                            Accessing profile in gnome-terminal



                            Setting backspace behavior






                            share|improve this answer















                            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.



                            Accessing profile in gnome-terminal



                            Setting backspace behavior







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Nov 6 '15 at 21:19









                            fixer1234

                            18.8k144982




                            18.8k144982










                            answered Jun 2 '11 at 4:27









                            elcashelcash

                            1664




                            1664























                                0














                                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






                                share|improve this answer






























                                  0














                                  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






                                  share|improve this answer




























                                    0












                                    0








                                    0







                                    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






                                    share|improve this answer















                                    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







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Jun 2 '11 at 5:59

























                                    answered Jun 2 '11 at 5:53









                                    broomdodgerbroomdodger

                                    1,420105




                                    1,420105






























                                        draft saved

                                        draft discarded




















































                                        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.




                                        draft saved


                                        draft discarded














                                        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





















































                                        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







                                        Popular posts from this blog

                                        Plaza Victoria

                                        In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                                        How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...