aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:17:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:19:00 +1200
commitfe56520f8ac541cfa4c4a013ab9dca252f8fea40 (patch)
treef71ea09143d7560f2ca19d180ef9f4319ec8052e
parentUpdate vim-vertical-region to v1.2.0 (diff)
downloaddotfiles-fe56520f8ac541cfa4c4a013ab9dca252f8fea40.tar.gz
dotfiles-fe56520f8ac541cfa4c4a013ab9dca252f8fea40.zip
Add 'indent' and 'eol' flags to 'backspace'
It's annoying not being able to remove the indent in e.g. heredocs, and I feel that being able to do so is still philosophically consistent, because the spaces were inserted during that insert operation. Newlines were, too. What I don't want to do, at least not just yet, is add 'start', because I should be using normal mode commands for such deletions.
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index c88781c1..a8c216dc 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -20,9 +20,9 @@ let &softtabstop = v:version > 703
\ || v:version == 703 && has('patch693')
\ ? -1 : &shiftwidth
-" Restore insert mode 'backspace' limits to the stringent Vim default, if a
-" system vimrc or Neovim has messed with it
-set backspace=
+" Allow me to backspace 'autoindent' spaces in insert mode, and back over the
+" end of lines I've inserted in this session
+set backspace=indent,eol
" Keep backup files in dedicated directory; add trailing double-slash to keep
" full path in name, if Vim is new enough to support that