diff --git a/.vimrc b/.vimrc index ff9105b..723d3f2 100644 --- a/.vimrc +++ b/.vimrc @@ -161,4 +161,11 @@ set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' +"https://jeffkreeftmeijer.com/vim-number/ +set number relativenumber +augroup numbertoggle + autocmd! + autocmd BufEnter,FocusGained,InsertLeave * set relativenumber + autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +augroup END