From dce5abc0724428f805562dd32bf9a71677d55aaa Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 12 Sep 2018 23:47:04 +1200 Subject: Replace paste_open.vim with paste_hook.vim Still a little experimental; no documentation (or distribution) yet. --- vim/plugin/paste_hook.vim | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 vim/plugin/paste_hook.vim (limited to 'vim/plugin/paste_hook.vim') diff --git a/vim/plugin/paste_hook.vim b/vim/plugin/paste_hook.vim new file mode 100644 index 00000000..5697a198 --- /dev/null +++ b/vim/plugin/paste_hook.vim @@ -0,0 +1,44 @@ +" +" 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() -- cgit v1.2.3