Try ":set backspace+=start
". You may want to go the whole way and do ":set backspace=indent,eol,start
".
See ":help 'backspace'
" (the single-quotes are meant to be typed).
I am on a ubuntu 10.04 machine. The installed vim7.2 works as expected in insert mode for <ctrl-w,h,u>
but my custom compiled vim7.3.744 shows a strange behaviour:
Starting vim with an empty buffer (cursor indicated by |
):
~|
When I switch to insert mode, and type a few letters the commands <ctrl-w,h,u>
work just fine:
~adsf|<ctrl-w>
=>
~|
However, when I leave insert mode after typing and enter insert mode again and press <ctrl-w,h,u>
nothing happens:
~adsf|<Esc> Pressing A to enter insert mode again ~adsf|<ctrl-w>
=>
~asdf|
If I should show :ver
I can do this.
Update
Note: the vim setting backspace
is set in $VIMRUNTIME/debian.vim which /usr/bin/vim7.2 uses for startup.
Try ":set backspace+=start
". You may want to go the whole way and do ":set backspace=indent,eol,start
".
See ":help 'backspace'
" (the single-quotes are meant to be typed).