aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:58:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:59:03 +1300
commit6876b5850cee41aca2ba79960751d97c77a17e0a (patch)
tree6d7c82cc127641718e65510619ffc78e4732c217
parentMove terminal .vimrc config into subfile (diff)
downloaddotfiles-6876b5850cee41aca2ba79960751d97c77a17e0a.tar.gz
dotfiles-6876b5850cee41aca2ba79960751d97c77a17e0a.zip
Move line number .vimrc config into subfile
This file is rather short; it may turn out to make more sense to put these settings elsewhere a bit later.
-rw-r--r--vim/config/number.vim3
-rw-r--r--vim/vimrc4
2 files changed, 3 insertions, 4 deletions
diff --git a/vim/config/number.vim b/vim/config/number.vim
new file mode 100644
index 00000000..464a77a2
--- /dev/null
+++ b/vim/config/number.vim
@@ -0,0 +1,3 @@
+" Don't show line numbers by default, but \n toggles them
+set nonumber
+nnoremap <leader>n :setlocal number!<CR>
diff --git a/vim/vimrc b/vim/vimrc
index 6f0c9b1a..55631d37 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -99,10 +99,6 @@ set report=0
" more than scratch space anyway
set shellslash
-" Don't show line numbers by default, but \n toggles them
-set nonumber
-nnoremap <leader>n :setlocal number!<CR>
-
" Start paste mode with F10 to prevent console Vim from confusing a swathe of
" pre-formatted pasted text with actual keyboard input, and thereby attempting
" to indent it inappropriately. If unimpaired.vim is available, it's generally