From: Simon Ruderich Date: Tue, 3 Feb 2009 13:58:36 +0000 (+0100) Subject: Don't backspace over edit start. Use virtualedit. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=bf1259ccbdee487fc48c0a8f86815cb2b2476863;p=config%2Fdotfiles.git Don't backspace over edit start. Use virtualedit. --- diff --git a/vimrc b/vimrc index 5d39f34..cd7c90e 100644 --- a/vimrc +++ b/vimrc @@ -31,8 +31,8 @@ set autoindent " When joining lines only add one space after a sentence. set nojoinspaces -" Allow backspacing over autoindent, line breaks and insert mode starts. -set backspace=indent,eol,start +" Allow backspacing over autoindent and line breaks. +set backspace=indent,eol " Start a comment when hitting enter after a commented line (r) and when using " o or O around a commented line (o). @@ -41,6 +41,10 @@ set formatoptions+=ro " started. set formatoptions+=l +" Allow virtual editing (cursor can be positioned anywhere, even when there is +" no character) in visual block mode. +set virtualedit=block + " Already display matches while typing the search command. This makes spotting " errors easily. set incsearch