From bf1259ccbdee487fc48c0a8f86815cb2b2476863 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 3 Feb 2009 14:58:36 +0100 Subject: [PATCH] Don't backspace over edit start. Use virtualedit. --- vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.44.2