User314159
User314159

Reputation: 8065

Vim visual mode backspace deletes instead of moving cursor

When I was using vim 7.3 in visual mode, backspace would move the cursor backwards.

I recently upgraded to vim 7.4 and now notice that now in visual mode, backspace actually deletes everything that's been selected.

Does anyone know how to fix this?

Thanks!

Upvotes: 1

Views: 512

Answers (1)

Daniele
Daniele

Reputation: 41

I had this problem using vim 7.4 on OS X (Homebrew's version).

I solved the issue by adding :vnoremap <BS> ^H to my .vimrc file. (To add the ^H symbol from vim when in insert mode use CTRL+V CTRL+H.)

You can find more information about problems with backspace here (vim wikia).

Upvotes: 1

Related Questions