Add basic autocmds to wrap on markdown and open logs at the end
This commit is contained in:
parent
4d5084e5aa
commit
16bbf912c1
14
vim/.vimrc
14
vim/.vimrc
@ -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 -}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user