From f2b3dd7b942775fb48a8233178a831061230fd5c Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 30 Jul 2022 14:10:54 +0200 Subject: [PATCH] vim: Plugin durch mapping erstezt --- .vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 1b03655..6bc8ce8 100644 --- a/.vimrc +++ b/.vimrc @@ -26,9 +26,6 @@ Plugin 'junegunn/vim-easy-align' Plugin 'ap/vim-buftabline' " start screen Plugin 'mhinz/vim-startify' -" entferne whitespace am Zeilenende beim speicher -" ABER nur in geƤnderten zeilen -Plugin 'axelf4/vim-strip-trailing-whitespace' " bracketed paste/ keine set-paste mehr Plugin 'ConradIrwin/vim-bracketed-paste' " multi cursor; setze cursor mit \\\ @@ -199,3 +196,6 @@ nnoremap z :set nonumber! norelativenumber! : autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif : autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif :augroup END + +" entferne trailing whitespaces beim speichern +autocmd BufWritePre * :%s/\s\+$//e