aboutsummaryrefslogtreecommitdiff
path: root/vim/config/join.vim
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 /vim/config/join.vim
parentMove 'tildeop' .vimrc config into subfile (diff)
downloaddotfiles-473211e0a404e7e22539cfdb0ba34436b5afb430.tar.gz
dotfiles-473211e0a404e7e22539cfdb0ba34436b5afb430.zip
Move line-joining .vimrc config into subfile
Diffstat (limited to 'vim/config/join.vim')
-rw-r--r--vim/config/join.vim4
1 files changed, 4 insertions, 0 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