aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2018-04-08 00:14:36 +0200
committerTeddy Wing2018-04-08 00:15:30 +0200
commitfeababe82edc183a20f5b410aff5f4dc21ab4d32 (patch)
treecfabad800f8b6cc37caf512d36989711be6feea2 /plugin
parent8868b071355638d3a8df26249216f46d8709b91d (diff)
downloadvim-tabs-grep-feababe82edc183a20f5b410aff5f4dc21ab4d32.tar.bz2
Only load the plugin once
Diffstat (limited to 'plugin')
-rw-r--r--plugin/tabs_grep.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/tabs_grep.vim b/plugin/tabs_grep.vim
index 34da6cf..1232f62 100644
--- a/plugin/tabs_grep.vim
+++ b/plugin/tabs_grep.vim
@@ -1 +1,6 @@
+if exists('g:loaded_tabs_grep')
+ finish
+endif
+let g:loaded_tabs_grep = 1
+
command! -nargs=1 TabsGrep :call tabs_grep#TabsGrep(<f-args>)