You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
453 B
VimL

lua << EOF
local cmd = vim.cmd
cmd([[
augroup init
autocmd!
" Remember last location/cursor in file
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
" Autoresize windows/splits when vim resizes
autocmd VimResized * wincmd =
" When opening temporary mails in mutt, automatically set filetype to mail
autocmd BufNewFile,BufRead neomutt-* set ft=mail
augroup END
]])
EOF