Clean extra ⏎ before saving file
This commit is contained in:
parent
681a546eb7
commit
7389b68007
|
@ -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
|
" Auto-remove extra whitespaces before writing the file
|
||||||
autocmd BufWritePre * :%s/\s\+$//e
|
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)
|
" Search for 2 whitespaces and highlight it (red and underline)
|
||||||
set hls
|
set hls
|
||||||
|
|
Loading…
Reference in New Issue