From a6edb81626a56b266f3ac4f4907e595a7987b3ab Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 27 Nov 2014 17:02:10 -0500 Subject: plugin/ls_grep.vim: Don't reload the plugin if already loaded Learning to become a good plugin citizen. --- plugin/ls_grep.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/ls_grep.vim b/plugin/ls_grep.vim index 82fc0e9..64cde5f 100644 --- a/plugin/ls_grep.vim +++ b/plugin/ls_grep.vim @@ -1 +1,6 @@ +if exists("g:loaded_ls_grep") + finish +endif +let g:loaded_ls_grep = 1 + command! -nargs=1 LsGrep call ls_grep#LsGrep("") -- cgit v1.2.3