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