aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-23 01:19:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-23 01:24:14 +1200
commit16ae605f844121dd4192297db8cab0528d1af055 (patch)
treeb504463dce35e32d3afcd7d45f408a1a9638fbe6 /autoload
parentFlesh out documentation a lot (diff)
downloadvim-paste-insert-16ae605f844121dd4192297db8cab0528d1af055.tar.gz
vim-paste-insert-16ae605f844121dd4192297db8cab0528d1af055.zip
Revert "Clear event table only once so user can...
The group clears itself by design once it's done, so they can't use it anyway.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/paste_insert.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/autoload/paste_insert.vim b/autoload/paste_insert.vim
index 32b60e4..fe9e482 100644
--- a/autoload/paste_insert.vim
+++ b/autoload/paste_insert.vim
@@ -1,11 +1,9 @@
" Autoloaded entry point function
function! paste_insert#() abort
- " Set up an event table; note that we intentionally don't clear the group.
- " We did that in plugin/paste_insert.vim, so that the user could add their
- " own hooks if need be.
- "
+ " Set up an event table
augroup paste_insert
+ autocmd!
" Set up the paste and tell the user
autocmd User Start