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

This commit is contained in:
Andrew R. M 2025-04-05 16:37:09 -04:00 committed by Andrew R. M.
parent 4d5084e5aa
commit 16bbf912c1

View File

@ -133,6 +133,20 @@ set nocompatible
set clipboard=unnamed,unnamedplus set clipboard=unnamed,unnamedplus
endif 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 -}" "{- PLUGINS -}"
"{- SLIME -}" "{- SLIME -}"