summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-07-28 14:00:50 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-07-28 14:00:50 +0200
commit558582c5c939936ee17fff47596e28b2a30d145b (patch)
tree18349545a1bb4b083ca55c5246b81a0c0633e5e2 /.vimrc
parentDo not use relative numbers by default (diff)
downloadvim_sync-558582c5c939936ee17fff47596e28b2a30d145b.tar.xz
Fix function toggleRelativeNumbers for Vim 7.4
In 7.3 was relativenumber and number opposite options In 7.4, they can be set together
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 1b2977d..a477721 100644
--- a/.vimrc
+++ b/.vimrc
@@ -194,7 +194,7 @@ imap <leader>d </><Esc>2F<lywf>f/pF<i<Enter><Enter><Up><Tab>
function! NumberToggle()
if(&relativenumber == 1)
- set number
+ set norelativenumber
else
set relativenumber
endif