diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 03:20:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 03:20:25 +1200 |
commit | d5f46520c4e05ff56cac75a593ba88bb71e43337 (patch) | |
tree | 02897068882cdebdfca7bb1087ae64870d3d6249 | |
parent | Strip buflocal property from paste_insert autocmds (diff) | |
download | dotfiles-d5f46520c4e05ff56cac75a593ba88bb71e43337.tar.gz dotfiles-d5f46520c4e05ff56cac75a593ba88bb71e43337.zip |
Use <Plug> mapping target for paste_insert.vim
-rw-r--r-- | vim/plugin/paste_insert.vim | 2 | ||||
-rw-r--r-- | vim/vimrc | 3 |
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> @@ -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 |