Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MacVim Visual Selection Delete moves back 3 extra chars

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:

Made selection with mouse or shift-arrow

After hitting backspace:

Where the cursor ends up after backspace key

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.

like image 888
notbrain Avatar asked Feb 18 '26 13:02

notbrain


1 Answers

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.

like image 89
markquezada Avatar answered Feb 20 '26 04:02

markquezada



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!