![]() | 1 WarWithinMe 2011-10-21 22:12:03 +08:00 你用的是Windows的gVim还是Mac的MacVim? |
![]() | 2 WarWithinMe 2011-10-21 22:15:54 +08:00 MacVim本身好像就不用怎么设置。但是gVim要用函数: func Backspace() if col('.') == 1 if line('.') != 1 return "\<ESC>kA\<Del>" else return "" endif else return "\<Left>\<Del>" endif endfunc if MySys() == "windows" inoremap <BS> <c-r>=Backspace()<CR> endif MacVim只需要设置 set backspace=2 |
![]() | 3 lbj96347 OP @WarWithinMe 我是在ubuntu下使用vim的,之前还是好好的,但是升级ubuntu11.10后就变成这样了,我看了配置文件,感觉好像又没有问题。 |
![]() | 4 lbj96347 OP @WarWithinMe 感谢你,我设置了set backspace=2后修复了这个问题。不过真的不知道是什么原理。虽然不是macvim。 |
![]() | 5 WarWithinMe 2011-10-21 22:48:32 +08:00 其实我一般是搜vim wiki的。。。vim自带的帮助感觉太折腾了。 |