1 2
" I don't know how to port this yet autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif