Reputation: 3396
Using MacVim with https://github.com/carlhuda/janus installed, when I select a visual or insert block and hit backspace, the cursor jumps back an extra 3 spaces. Anyone else see this? Makes it real annoying to do my favorite shift-cmd-up to select and delete empty lines.
set backspace=indent,eol,start
is the only reference to backspace I see in vimrc and gvimrc.
Selection made:
After hitting backspace:
Anyone know of a quick way to fix this? I'm working through http://vim.wikia.com/wiki/Backspace_and_delete_problems to see if any of the remedies there can help but I don't see anything at first glance.
Upvotes: 3
Views: 460
Reputation: 8535
I know this question is a little old, but the two previous answers led me in the right direction. Looks like snipMate was the culprit.
Edit this file:
~/.vim/after/plugin/snipMate.vim
And comment out this line:
snor <bs> b<bs>
This solved the issue for me.
Upvotes: 2
Reputation: 5303
If you're lucky and it's a mapping, :verbose vmap <BS>
would tell you where it's being set. Otherwise, you'll have to see if the problem is your vimrc or a plugin, run MacVim from the terminal with mvim -N -u NORC -U NORC
to rule your vimrc and gvimrc out, then mvim --noplugin
to rule plugins out.
Upvotes: 1