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

This commit is contained in:
Andrew R. M 2025-04-04 17:43:05 +00:00
parent 741d96cdd4
commit ef429f5e5e

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 -}"