aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-11-27 17:02:10 -0500
committerTeddy Wing2014-11-27 17:02:10 -0500
commita6edb81626a56b266f3ac4f4907e595a7987b3ab (patch)
treefded69dae74c2bd7bb70e161060c034565bcfd7f
parent10b8ebf83e008687d9b7b439f1d59fabe13287ce (diff)
downloadvim-ls-grep-a6edb81626a56b266f3ac4f4907e595a7987b3ab.tar.bz2
plugin/ls_grep.vim: Don't reload the plugin if already loaded
Learning to become a good plugin citizen.
-rw-r--r--plugin/ls_grep.vim5
1 files changed, 5 insertions, 0 deletions
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("<args>")