git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b1bf28
)
Use relativenumber if available.
author
Iain Patterson
<me@iain.cx>
Thu, 17 Mar 2016 12:31:10 +0000
(12:31 +0000)
committer
Iain Patterson
<me@iain.cx>
Thu, 17 Mar 2016 12:31:10 +0000
(12:31 +0000)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
a72c2dc
..
9906303
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-386,6
+386,9
@@
endfun "}}}2
fun! Number(resize) "{{{2
call Iain_Vars()
let &number = ! &number
+ if version >= 700
+ let &relativenumber = &number
+ endif
" Ensure we keep track of any extra columns even if we aren't resizing.
" This prevents confusion when number is set at startup.