Add relativenumber to vimrc

master
nirenjan 2014-07-16 19:43:32 -07:00
parent 2d87f15a70
commit b7bce73a39
1 changed files with 10 additions and 1 deletions

11
vimrc
View File

@ -50,7 +50,16 @@ set showtabline=2
" This (by default shows up as underlining) " This (by default shows up as underlining)
set cursorline set cursorline
" Show line number " Show line number + relativenumber
" Some older vim versions don't support relative numbering. Check first.
if exists("&relativenumber")
set relativenumber
endif
" Fallback to normal line numbering. If the version of Vim is recent enough,
" it will display the line number on the current line and use relative
" numbering on other lines. However, if the Vim version doesn't support
" simultaneous use of both relativenumber and number, then it will fallback to
" using just number.
set number set number
" xterm title inherited from vim " xterm title inherited from vim