]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
Don't backspace over edit start. Use virtualedit.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 5d39f34cf54384612344920b2125c4144a77162a..cd7c90e9ec1a06741bac569d35af9b3f25271516 100644 (file)
--- 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