From 7389b680078fc2bd3752d1c93a380e89d1d2487b Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 1 Aug 2022 09:15:53 +0200 Subject: [PATCH] =?UTF-8?q?Clean=20extra=20=E2=8F=8E=20before=20saving=20f?= =?UTF-8?q?ile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/skeleton.py | 3 +++ vimrc | 2 ++ 2 files changed, 5 insertions(+) create mode 100755 templates/skeleton.py diff --git a/templates/skeleton.py b/templates/skeleton.py new file mode 100755 index 0000000..9ee72b9 --- /dev/null +++ b/templates/skeleton.py @@ -0,0 +1,3 @@ +#!/bin/python +# -*- coding: utf-8 -*- + diff --git a/vimrc b/vimrc index 6ee3bb9..39ea70a 100644 --- a/vimrc +++ b/vimrc @@ -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