Remove trailing whitespaces
This commit is contained in:
parent
eed0856c06
commit
cc53da2ad7
1 changed files with 11 additions and 0 deletions
|
|
@ -253,4 +253,15 @@ set linebreak
|
||||||
" Searching with "/": Ignore case if search term is lower case.
|
" Searching with "/": Ignore case if search term is lower case.
|
||||||
set smartcase
|
set smartcase
|
||||||
|
|
||||||
|
|
||||||
|
" Strip trailing whitespaces on each save
|
||||||
|
fun! <SID>StripTrailingWhitespaces()
|
||||||
|
let l = line(".")
|
||||||
|
let c = col(".")
|
||||||
|
%s/\s\+$//e
|
||||||
|
call cursor(l, c)
|
||||||
|
endfun
|
||||||
|
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
|
||||||
|
|
||||||
|
|
||||||
colorscheme blackboard
|
colorscheme blackboard
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue