]> git.rmz.io Git - dotfiles.git/commitdiff
vim: virtualedit=all is more annoying than helpful
authorSamir Benmendil <me@rmz.io>
Wed, 14 Oct 2015 11:43:27 +0000 (12:43 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 14 Oct 2015 11:43:27 +0000 (12:43 +0100)
vim/vimrc

index 7d8d9e31c7f09ddbf19ea7ab443449a22e6ee7cf..f4265f44a0351084cca49ac1c3d501957847e806 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -264,7 +264,8 @@ set makeprg=make\ -w     " print changing directories
 set isfname-==    " don't treat `=` as being part of filenames
 
 " various {{{2
-set virtualedit=all             " let cursor move past last char in <C-V> mode
+set virtualedit+=block     " let cursor move past last char in <C-V> mode
+set virtualedit+=onemore   " allow the cursor to move just past the end of the line
 set viminfo='100,<50,s10,h,n$XDG_CACHE_HOME/vim/viminfo " viminfo defaults but save file in .cache
 
 set viewdir=$XDG_CACHE_HOME/vim/view//