vim/plugin/autocmds.vim
Kenneth Benzie (Benie) fd8e88d28c Remove relativenumber autocmds
These kept disabling relativenumber when editing which was annoying.
2018-03-29 21:21:36 +01:00

13 lines
385 B
VimL

augroup benieAugroup
" Clear all autocmd's in this group
autocmd!
" Reopening a file at last curson position
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\ | exe "normal! g'\"" | endif
" TODO: Move this to a plugin & rename to .enter .exit
au BufRead,BufNewFile .env set filetype=zsh
au BufRead,BufNewFile .out set filetype=zsh
augroup END