aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:27:06 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:29:16 +1300
commit473211e0a404e7e22539cfdb0ba34436b5afb430 (patch)
tree84cc1f52a79697ff51433cd1c7765723a607df49
parentMove 'tildeop' .vimrc config into subfile (diff)
downloaddotfiles-473211e0a404e7e22539cfdb0ba34436b5afb430.tar.gz
dotfiles-473211e0a404e7e22539cfdb0ba34436b5afb430.zip
Move line-joining .vimrc config into subfile
-rw-r--r--vim/config/join.vim4
-rw-r--r--vim/vimrc5
2 files changed, 4 insertions, 5 deletions
diff --git a/vim/config/join.vim b/vim/config/join.vim
new file mode 100644
index 00000000..5f75d89b
--- /dev/null
+++ b/vim/config/join.vim
@@ -0,0 +1,4 @@
+" Don't jump my screen around when I join lines, keep my cursor in the same
+" place; this is done by dropping a mark first and then immediately returning
+" to it; note that it wipes out your z mark, if you happen to use it
+nnoremap J mzJ`z
diff --git a/vim/vimrc b/vim/vimrc
index ce487bc4..11746738 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -23,11 +23,6 @@ if v:version >= 701
endif
endif
-" Don't jump my screen around when I join lines, keep my cursor in the same
-" place; this is done by dropping a mark first and then immediately returning
-" to it; note that it wipes out your z mark, if you happen to use it
-nnoremap J mzJ`z
-
" 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