Skip to content

Commit

Permalink
Added relative line numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
aggrand committed Sep 12, 2019
1 parent 802f2c2 commit 6b931e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ set autoindent
" enables use of mouse in all modes
set mouse=a

" displays line numbers on the left
set number
" displays line numbers, and toggle between them in modes
:set number relativenumber
:augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
:augroup END

" tab settings
set tabstop=4
Expand Down

0 comments on commit 6b931e8

Please sign in to comment.