" I don't know how to port this yet autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif autocmd BufNewFile,BufRead /tmp/neomutt* set noautoindent filetype=mail wm=0 tw=80 augroup bukugroup au! BufRead,BufNewFile,BufEnter buku-edit-* set filetype=buku augroup END " Restore last position autocmd BufReadPost * \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ | exe "normal! g`\"" \ | endif " Currently for one c snippet, but can embed into lualine autocmd VimEnter * call vista#RunForNearestMethodOrFunction()