diff --git a/plugin/autocmds.vim b/plugin/autocmds.vim index 9e210f7..a6df3ba 100644 --- a/plugin/autocmds.vim +++ b/plugin/autocmds.vim @@ -1,12 +1,12 @@ augroup benieAugroup + " Clear all autocmd's in this group autocmd! - au BufEnter *.c set relativenumber - au BufLeave *.c set norelativenumber - au BufEnter *.cpp set relativenumber - au BufLeave *.cpp set norelativenumber + " 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