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

augroup vimwiki
    autocmd!
    autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki
augroup END