21493ca2db3af7000b6517a20bb5496ec150414c — Simon Ser 2 months ago 7c35c86
vim: trim whitespace on save
1 files changed, 4 insertions(+), 0 deletions(-)

M .vimrc
M .vimrc => .vimrc +4 -0
@@ 77,6 77,10 @@ highlight TabLine cterm=none ctermfg=darkgrey ctermbg=none
  highlight ColorColumn ctermbg=234 guibg=lightgrey
  
+ " Trim whitespace
+ let blacklist = ['md']
+ autocmd BufWritePre * if index(blacklist, &ft) < 0 | %s/\s\+$//e
+ 
  set hidden
  set notimeout