tags:

views:

172

answers:

2

I think I need a setting to prevent vim (6.0) to delete an entire word instead of a character when I press a backspace. please suggest!

+1  A: 

You can use :imap:

:imap <C-?> <C-W>

Depending on your terminal settings, you may need to use <C-H> instead of <C-?>. Note that the above characters are typed literally (less-than, C, dash, ?, greater-than, etc).

Greg Hewgill
+2  A: 

Hm, if you want to prevent it deleting a word when you press , then discard a non-default configuration you have imposed for vim to do so.

Or try

:iunmap <BS>

and report if it helps.

Pavel Shved