aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-09-12 23:47:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-09-12 23:47:40 +1200
commitf06e6def650cf62af7a0bd7e067c578d2ba6fa8f (patch)
treeea5e6118f39e57d2f6958782ff50ce925a1479ee /vim/vimrc
parentMerge branch 'hotfix/v1.68.1' (diff)
parentBump VERSION (diff)
downloaddotfiles-f06e6def650cf62af7a0bd7e067c578d2ba6fa8f.tar.gz
dotfiles-f06e6def650cf62af7a0bd7e067c578d2ba6fa8f.zip
Merge branch 'release/v1.69.0'v1.69.0
* release/v1.69.0: Bump VERSION Replace paste_open.vim with paste_hook.vim
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d017dfe9..523bace5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -331,12 +331,15 @@ if exists(':xnoremap')
endif
" \o opens a line below in paste mode
-nmap <Bslash>o <Plug>(PasteOpenBelow)
+nmap <Bslash>o <Plug>(PasteHook)o
" \O opens a line above in paste mode
-nmap <Bslash>O <Plug>(PasteOpenAbove)
+nmap <Bslash>O <Plug>(PasteHook)O
-" \p toggles paste mode
+" \p toggles paste mode, or sets a hook if plugin available
nnoremap <Bslash>p :<C-U>set paste! paste?<CR>
+if &loadplugins
+ nmap <Bslash>p <Plug>(PasteHook)
+endif
" \q formats the current paragraph
nnoremap <Bslash>q gqap