Clean extra ⏎ before saving file
This commit is contained in:
parent
681a546eb7
commit
7389b68007
3
templates/skeleton.py
Executable file
3
templates/skeleton.py
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
2
vimrc
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user