Backspace in Vim

One of the things I like to have in VIM is the backspace key working just like in all the other editors. I like the backspace key to delete the characters in in the right-to-left direction and delete also the line breaks when it gets to the beginning of a line. However, most of default vimrc files I find don’t have this enabled. Sometimes the backspace doesn’t delete at all, other times it doe not delete the line breaks…. arghh…

To have the backspace key in VIM behaving just like in all the other text editors,  just add the following line to your vimrc file:

set backspace=indent,eol,start 
VN:F [1.9.11_1134]
Rating: 8.4/10 (7 votes cast)
VN:F [1.9.11_1134]
Rating: +4 (from 4 votes)
Backspace in Vim, 8.4 out of 10 based on 7 ratings

Popularity: 15% [?]

Tags: , , , . 

Related Entries:
  • No related posts


  • 8 Responses to “Backspace in Vim”

    1. Marco Rodrigues Says:

      És adepto do Sporting? Estas cores do blog “ferem” um bocado os olhos..

      Esse trick já vem como default em Ubuntu =) pelo menos no Edgy já lá tenho isso!

      VA:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    2. vitor Says:

      Sou sportinguista sou :-)
      Ainda ando ha procura do theme ideal. Para agora, vai ficar este mais simples.
      Quanto ao VIM, lembro-me que no ubuntu vinha como “default”, mas no RedHat e Suse nao. Sempre que trabalho num novo servidor (a grande maioria sao redhat) e preciso de usar o VIM, la vou eu ao google procurar como se faz para por o backspace a funcionar. Agora ao menos sempre encontro a dica mais depressa :-)

      VN:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    3. José Says:

      Acabaste de me salvar a vida! :)

      VA:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    4. vitor Says:

      Ainda bem :-) Foi mesmo por isso que eu decidi escrever o artigo. Ja estava cheio de procurar na net de cada vez que encontrava um VIM “manhoso” :-)

      VN:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    5. jmuzz Says:

      Thanks, you saved the day.

      VA:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    6. Ben Spaulding Says:

      En algunos casos he tenido que añadir “:fixdel“ además de “set backspace=indent,eol,start“ a mi vimrc.

      VA:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    7. artur Says:

      this solution also implemented (at least in my vim-7.1 port) in vimrc_example.vim: one just can add “source $VIMRUNTIME/vimrc_example.vim” into rc

      VA:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.11_1134]
      Rating: 0 (from 0 votes)
    8. Christian Louboutin sale vb Says:

      Having already mastered the craftiness of menswear for decline, it’s time to judge the most modish way to hurry off as when temps become apropos south. Fortunately, you won’t from to look much farther than your closet to wrap yourself in fashionable goodness.It’s like they were saying, we certain you have to have your Christian Louboutin shoes a breed of different ways, we remember these be experiencing to look after the needs of a practicality in your living exchange for the weekend, when you’re with your kids, when you’re at task, when you’re present doused at night,So here’s a approach you can manage the most unlit of something that you have in your closet. And if you look at it like that, it’s like, ‘wow, this is gonna breath contemporary living into how I wear everything.
      There are no rules suitable just now in fashion. You can be glamorous morning, twelve o’clock noon and night. You can incorporate prints. You can show sequins in the sun. The alone rule is to make an effort to look your foremost and to comprise game of and feel good about what Christian Louboutin Platforms you’re wearing.

      VA:F [1.9.11_1134]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.11_1134]
      Rating: 0 (from 0 votes)