From 0023ffb488256c8b89911d88ab7cea418c09e6c1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Sep 2018 15:42:26 +1200 Subject: Revert "Replace paste_open.vim with paste_hook.... This reverts commit dce5abc0724428f805562dd32bf9a71677d55aaa. On review, paste_open is good enough. I can always dig this back up again if I need to. --- vim/plugin/paste_hook.vim | 44 -------------------------------------------- vim/vimrc | 9 +++------ 2 files changed, 3 insertions(+), 50 deletions(-) delete mode 100644 vim/plugin/paste_hook.vim diff --git a/vim/plugin/paste_hook.vim b/vim/plugin/paste_hook.vim deleted file mode 100644 index 5697a198..00000000 --- a/vim/plugin/paste_hook.vim +++ /dev/null @@ -1,44 +0,0 @@ -" -" paste_hook.vim: Mapping target to add a self-clearing autocmd that unsets -" 'paste' on the next InsertLeave event, if set; intended for use as a prefix -" to an insert session to make it happen in paste mode. -" -" Author: Tom Ryder - \ (PasteHook) - \ :call Set() diff --git a/vim/vimrc b/vim/vimrc index 523bace5..d017dfe9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -331,15 +331,12 @@ if exists(':xnoremap') endif " \o opens a line below in paste mode -nmap o (PasteHook)o +nmap o (PasteOpenBelow) " \O opens a line above in paste mode -nmap O (PasteHook)O +nmap O (PasteOpenAbove) -" \p toggles paste mode, or sets a hook if plugin available +" \p toggles paste mode nnoremap p :set paste! paste? -if &loadplugins - nmap p (PasteHook) -endif " \q formats the current paragraph nnoremap q gqap -- cgit v1.2.3