aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-23 01:01:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-23 01:01:29 +1200
commitf93775f827ea791bf7dcc872503b37205c2e4a5a (patch)
treef43fae6462abed99fc3ec7d942edb30195a11ec4 /plugin
parentClarify explanation of map settings a bit (diff)
downloadvim-paste-insert-f93775f827ea791bf7dcc872503b37205c2e4a5a.tar.gz
vim-paste-insert-f93775f827ea791bf7dcc872503b37205c2e4a5a.zip
Clear event table only once so user can use it
Diffstat (limited to 'plugin')
-rw-r--r--plugin/paste_insert.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/paste_insert.vim b/plugin/paste_insert.vim
index a792a50..ecb97ca 100644
--- a/plugin/paste_insert.vim
+++ b/plugin/paste_insert.vim
@@ -12,6 +12,11 @@ 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#()