2016-12-26 08:36:23 +00:00
|
|
|
augroup init
|
2015-05-05 11:18:25 +00:00
|
|
|
autocmd!
|
|
|
|
|
|
|
|
" Remember last location/cursor in file
|
|
|
|
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
|
|
|
|
|
2017-06-21 20:31:39 +00:00
|
|
|
" Autoresize windows/splits when vim resizes
|
|
|
|
autocmd VimResized * wincmd =
|
|
|
|
|
2017-03-10 13:21:30 +00:00
|
|
|
" spell correction on markdown files and mail (for mutt)
|
|
|
|
autocmd FileType mail,markdown setlocal spell
|
|
|
|
autocmd FileType mail,markdown setlocal wrap
|
|
|
|
autocmd FileType mail,markdown setlocal spelllang=en,de
|
2021-05-13 14:58:13 +00:00
|
|
|
autocmd FileType mail,markdown setlocal textwidth=70
|
2021-02-11 14:26:48 +00:00
|
|
|
autocmd FileType mail,markdown setlocal formatoptions+=q
|
2017-03-10 13:21:30 +00:00
|
|
|
|
2021-02-11 14:26:48 +00:00
|
|
|
" correctly indent comments/quoted text in mails
|
2017-03-10 13:21:30 +00:00
|
|
|
autocmd FileType mail setlocal comments+=nb:>
|
2021-02-11 14:26:48 +00:00
|
|
|
autocmd FileType mail setlocal formatoptions+=aw
|
2020-03-07 16:12:12 +00:00
|
|
|
autocmd BufNewFile,BufRead neomutt-* set ft=mail
|
2020-07-08 17:27:44 +00:00
|
|
|
|
|
|
|
" special settings for json5, css and scss: better BEM
|
|
|
|
autocmd BufNewFile,BufRead *.{json5,css,scss} set iskeyword+=-
|
2021-05-12 09:41:21 +00:00
|
|
|
autocmd BufNewFile,BufRead *.scss set ft=scss.css
|
2015-05-05 11:18:25 +00:00
|
|
|
augroup END
|