Add basic autocmds to wrap on markdown and open logs at the end

This commit is contained in:
Andrew R. M. 2024-06-02 17:24:00 -04:00
parent 85cee95c2e
commit 008d3720ff

View File

@ -133,6 +133,20 @@ set nocompatible
set clipboard=unnamed,unnamedplus
endif
"{- AUTOCOMMANDS -}"
" Wrap lines for markdown files by default
augroup mdwrap
autocmd BufReadPost *.md :set wrap
autocmd BufLeave *.md :set nowrap
augroup END
" Automatically go to the last line for log files
augroup logend
autocmd BufReadPost *.log normal G
autocmd BufReadPost *.logs normal G
augroup END
"{- PLUGINS -}"
"{- SLIME -}"