From 516dab7f8b5083a3c6665c29cffc28b9645b3a85 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 17 Jun 2019 20:41:34 +0200 Subject: 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. --- vimrc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 893061e..ac948b3 100644 --- a/vimrc +++ b/vimrc @@ -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 :updategv " Update all files and quit nnoremap ZA :xall -" Preserve indentation on empty lines -" http://stackoverflow.com/a/7413117 -inoremap x -nnoremap o ox -nnoremap O Ox - " Allow undo of Ctrl-u and Ctrl-w in insert mode " http://vim.wikia.com/wiki/Recover_from_accidental_Ctrl-U inoremap u -- cgit v1.2.3