aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-25 13:12:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-25 13:12:52 +1200
commit942cf4e8afef712d9329701ec145f1005e82ac68 (patch)
tree15802d80e9272d8943cbc138c3d5d53b2a315519 /vim/vimrc
parentRemove misguided buffer mapping clear (diff)
downloaddotfiles-942cf4e8afef712d9329701ec145f1005e82ac68.tar.gz
dotfiles-942cf4e8afef712d9329701ec145f1005e82ac68.zip
Upgrade fixed_join.vim, define map explicitly
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 13211067..028ccdce 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -200,6 +200,9 @@ nnoremap ]t :<C-U>tabnext<CR>
nmap [<Space> <Plug>PutBlankLinesAbove
nmap ]<Space> <Plug>PutBlankLinesBelow
+" Remap normal J to hold the cursor still while joining lines
+nmap J <Plug>FixedJoin
+
" Remap normal Y to yank to end of line (consistent with C, D)
nnoremap Y y$