Remove relativenumber autocmds
These kept disabling relativenumber when editing which was annoying.
This commit is contained in:
parent
1c114b7135
commit
5380ea7c78
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user