aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 03:20:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 03:20:25 +1200
commitd5f46520c4e05ff56cac75a593ba88bb71e43337 (patch)
tree02897068882cdebdfca7bb1087ae64870d3d6249
parenteb922ee192c8308913cd1b6253c6c3aca44aae18 (diff)
downloaddotfiles-d5f46520c4e05ff56cac75a593ba88bb71e43337.tar.gz
Use <Plug> mapping target for paste_insert.vim
-rw-r--r--vim/plugin/paste_insert.vim2
-rw-r--r--vim/vimrc3
2 files changed, 3 insertions, 2 deletions
diff --git a/vim/plugin/paste_insert.vim b/vim/plugin/paste_insert.vim
index be578746..9cd5415e 100644
--- a/vim/plugin/paste_insert.vim
+++ b/vim/plugin/paste_insert.vim
@@ -4,3 +4,5 @@ endif
let loaded_paste_insert = 1
command! -bar PasteInsert
\ call paste_insert#()
+nnoremap <Plug>PasteInsert
+ \ :<C-U>PasteInsert<CR>
diff --git a/vim/vimrc b/vim/vimrc
index e29f1e01..df805727 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1320,8 +1320,7 @@ xmap <Leader>L <Esc><Leader>Lgv
" kept confusing me. I'm hoping this will be better.
"" Leader,p prepares the next insert for paste mode
-nnoremap <Leader>p
- \ :<C-U>PasteInsert<CR>
+nmap <Leader>p <Plug>PasteInsert
" These mappings are for managing filetypes. The first one uses the
" :ReloadFileType command that was defined much earlier in this file for