set lazyredraw
set number
set relativenumber
-"set cursorline
" fold
set foldmethod=syntax
" Commands
" Plugins
+
" ALE
packadd ale
nnoremap <Leader>m :CtrlPMRU<CR>
-
" autocommands
autocmd BufReadPost quickfix nnoremap <buffer> <CR> <CR>
autocmd bufnewfile,bufread *.md set filetype=markdown
autocmd bufnewfile,bufread *.gradle set filetype=groovy
-augroup save
- au!
- au FocusLost * wall
+
+augroup saveall
+ autocmd!
+ autocmd FocusLost * wall
+augroup END
+
+augroup numbertoggle
+ autocmd!
+ autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
+ autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
" local