aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/paste_insert.vim6
-rw-r--r--plugin/paste_insert.vim5
2 files changed, 2 insertions, 9 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
diff --git a/plugin/paste_insert.vim b/plugin/paste_insert.vim
index ecb97ca..a792a50 100644
--- a/plugin/paste_insert.vim
+++ b/plugin/paste_insert.vim
@@ -12,11 +12,6 @@ if exists('loaded_paste_insert') || &compatible
endif
let loaded_paste_insert = 1
-" Create the augroup here, so that the user can hook into it if they need to
-augroup paste_insert
- autocmd!
-augroup END
-
" Command interface
command! -bar PasteInsert
\ call paste_insert#()