Clean extra ⏎ before saving file

This commit is contained in:
gardouille 2022-08-01 09:15:53 +02:00
parent 681a546eb7
commit 7389b68007
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
2 changed files with 5 additions and 0 deletions

3
templates/skeleton.py Executable file
View File

@ -0,0 +1,3 @@
#!/bin/python
# -*- coding: utf-8 -*-

2
vimrc
View File

@ -929,6 +929,8 @@ match ExtraWhitespace /\s\+$/
" Auto-remove extra whitespaces before writing the file
autocmd BufWritePre * :%s/\s\+$//e
" Auto-remove extra ⏎ before writing the file
autocmd BufWritePre * :%s/⏎\+$//e
" Search for 2 whitespaces and highlight it (red and underline)
set hls