Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! <SID>StripTrailingWhitespaces()
- let l = line(".")
- let c = col(".")
- %s/\s\+$//e
- call cursor(l, c)
- endfunction
- let g:fb_kill_whitespace_blacklist = ["snippets"]
- if index(g:fb_kill_whitespace_blacklist, &ft) < 0
- au BufWritePre * :call <SID>StripTrailingWhitespaces()
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement