继上一篇 编译vim添加python支持 以后,发现backspace失效了,查找资料发现,是由于backspace变量为空,html
打开vim,输入python
:set backspace
若是出现的是linux
backspace=
那么就是backspace为空致使的了, 解决方法很简单,在.vimrc中加入git
set backspace=2
附上网上的说法,这里的选项有3个github
0 same as “:set backspace=” (Vi compatible) 1 same as “:set backspace=indent,eol” 2 same as “:set backspace=indent,eol,start”
参考资料:vim
http://stackoverflow.com/questions/10727392/vim-not-allowing-backspace?answertab=active#tab-topspa
http://cenalulu.github.io/linux/why-my-backspace-not-work-in-vim/code