From d5f46520c4e05ff56cac75a593ba88bb71e43337 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 16 Jun 2019 03:20:25 +1200 Subject: Use mapping target for paste_insert.vim --- vim/plugin/paste_insert.vim | 2 ++ 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 PasteInsert + \ :PasteInsert diff --git a/vim/vimrc b/vim/vimrc index e29f1e01..df805727 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1320,8 +1320,7 @@ xmap L Lgv " kept confusing me. I'm hoping this will be better. "" Leader,p prepares the next insert for paste mode -nnoremap p - \ :PasteInsert +nmap p PasteInsert " These mappings are for managing filetypes. The first one uses the " :ReloadFileType command that was defined much earlier in this file for -- cgit v1.2.3