set mouse=a set splitright set updatetime=250 " tabs, spaces set shiftwidth=2 set tabstop=2 set expandtab set list set listchars=tab:\ \ ,trail:- " ruler set relativenumber number augroup numbertoggle autocmd! autocmd BufEnter,WinEnter * if &nu && mode() != 'i' | set relativenumber | endif autocmd BufLeave,WinLeave * if &nu | set norelativenumber | endif augroup END " colors colorscheme darcula set termguicolors highlight Normal guibg=NONE ctermbg=NONE " diff if &diff autocmd BufEnter * if winnr('$') == 1 | quit | endif endif " pdf autocmd BufWinEnter *.pdf split | exe expandcmd("terminal firefox ':p'") | quit