1 2 3 4 5 6 7
:set number :set relativenumber :autocmd FileType ruby :set relativenumber :autocmd FocusLost *.rb :set norelativenumber :autocmd FocusGained *.rb :set relativenumber :autocmd InsertEnter *.rb :set norelativenumber :autocmd InsertLeave *.rb :set relativenumber