aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-25 22:56:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-25 22:56:04 +1200
commit63f7033045108f59ff9aa10bbeaba01200990375 (patch)
tree4ba02e6f17349087bea5d2c1ca10c0bacdd08226
parentExpand/fix messages filetype detection (diff)
downloaddotfiles-63f7033045108f59ff9aa10bbeaba01200990375.tar.gz
dotfiles-63f7033045108f59ff9aa10bbeaba01200990375.zip
Add fallback for normal J
-rw-r--r--vim/vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 12892474..2e90ecbe 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -200,7 +200,8 @@ 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
+" Remap normal J to stay in place while joining lines; fall back to default
+nnoremap <Plug>FixedJoin J
nmap J <Plug>FixedJoin
" Remap normal Y to yank to end of line (consistent with C, D)