From feababe82edc183a20f5b410aff5f4dc21ab4d32 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 8 Apr 2018 00:14:36 +0200 Subject: Only load the plugin once --- plugin/tabs_grep.vim | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v1.2.3