diff options
author | Teddy Wing | 2019-06-17 20:41:34 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-17 20:41:34 +0200 |
commit | 516dab7f8b5083a3c6665c29cffc28b9645b3a85 (patch) | |
tree | 2f4a482c87d0f740f16b4c080e2c79693c369338 /vimrc | |
parent | a4d85d0f98688b4eb73bcbf1a275eb90c8336e87 (diff) | |
download | dotvim-516dab7f8b5083a3c6665c29cffc28b9645b3a85.tar.bz2 |
vimrc: Don't preserve indentation on empty lines
Over the years and as I've been using Vim, I've gradually stopped liking
this style, and now prefer blank lines without whitespace.
Rather than continuing to override the default for different filetypes,
it feels like it's time to change the default.
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -429,6 +429,9 @@ " 2019.06.16: " * Disable modelines for CVE-2019-12735. " +" 2019.06.17: +" * Don't preserve indentation on empty lines. +" " Pathogen @@ -680,12 +683,6 @@ vnoremap <c-h> <esc>:update<cr>gv " Update all files and quit nnoremap ZA :xall<cr> -" Preserve indentation on empty lines -" http://stackoverflow.com/a/7413117 -inoremap <CR> <CR>x<BS> -nnoremap o ox<BS> -nnoremap O Ox<BS> - " Allow undo of Ctrl-u and Ctrl-w in insert mode " http://vim.wikia.com/wiki/Recover_from_accidental_Ctrl-U inoremap <c-u> <c-g>u<c-u> |