aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:27:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:29:16 +1300
commit2bbea0927b8ec1be00e6aa78ff92882bd271d4f1 (patch)
treeb6b2bcde660b6e10d9e361ec6f0f3270693ee667
parentMove line-joining .vimrc config into subfile (diff)
downloaddotfiles-2bbea0927b8ec1be00e6aa78ff92882bd271d4f1.tar.gz
dotfiles-2bbea0927b8ec1be00e6aa78ff92882bd271d4f1.zip
Move 'nrformats' .vimrc config into subfile
This is an awkward filename and very unlikely to ever have anything but this one setting in it, but I can't think of any logical other place to put it. number.vim applies to line numbering, which is a distinct concept.
-rw-r--r--vim/config/nrformats.vim3
-rw-r--r--vim/vimrc4
2 files changed, 3 insertions, 4 deletions
diff --git a/vim/config/nrformats.vim b/vim/config/nrformats.vim
new file mode 100644
index 00000000..09fe8c73
--- /dev/null
+++ b/vim/config/nrformats.vim
@@ -0,0 +1,3 @@
+" Don't assume a number with a leading zero is octal; it's far more likely a
+" zero-padded decimal, so increment and decrement with ^A and ^X on that basis
+set nrformats-=octal
diff --git a/vim/vimrc b/vim/vimrc
index 11746738..a5849694 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -22,7 +22,3 @@ if v:version >= 701
silent! colorscheme sahara
endif
endif
-
-" Don't assume a number with a leading zero is octal; it's far more likely a
-" zero-padded decimal, so increment and decrement with ^A and ^X on that basis
-set nrformats-=octal