Remove relativenumber autocmds

These kept disabling relativenumber when editing which was annoying.
This commit is contained in:
Kenneth Benzie 2018-03-29 21:21:36 +01:00
parent 1c114b7135
commit 5380ea7c78

View File

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