diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 19:44:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 19:44:24 +1200 |
commit | 5d65b101982b0954e8d9cff20906a80c9f6e9307 (patch) | |
tree | d5726f2eb034c30e0a95cb28c00d2abad6ae7c5c | |
parent | Add $MYVIM/vimrc hook conditionally (diff) | |
download | dotfiles-5d65b101982b0954e8d9cff20906a80c9f6e9307.tar.gz dotfiles-5d65b101982b0954e8d9cff20906a80c9f6e9307.zip |
Move 'backspace' settings down a bit
-rw-r--r-- | vim/vimrc | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -282,15 +282,6 @@ else let &softtabstop = &shiftwidth endif -" Relax traditional vi's harsh standards over what regions of the buffer can -" be removed with backspace in insert mode. While this admittedly allows bad -" habits to continue, since insert mode by definition is not really intended -" for deleting text, I feel the convenience outweighs that in this case. -" -set backspace+=eol " Line breaks -set backspace+=indent " Leading whitespace characters created by 'autoindent' -set backspace+=start " Text before the start of the current insertion - " Enable automatic backups of most file buffers. In practice, I don't need " these backups very much if I'm using version control sensibly, but they have " still saved my bacon a few times. @@ -354,6 +345,15 @@ if has('unix') endif +" Relax traditional vi's harsh standards over what regions of the buffer can +" be removed with backspace in insert mode. While this admittedly allows bad +" habits to continue, since insert mode by definition is not really intended +" for deleting text, I feel the convenience outweighs that in this case. +" +set backspace+=eol " Line breaks +set backspace+=indent " Leading whitespace characters created by 'autoindent' +set backspace+=start " Text before the start of the current insertion + " The visual structure of code provided by indents breaks down if a lot of the " lines wrap. Ideally, most if not all lines would be kept below 80 " characters, but in cases where this isn't possible, soft-wrapping longer |