diff options
| author | Teddy Wing | 2014-11-27 17:02:10 -0500 |
|---|---|---|
| committer | Teddy Wing | 2014-11-27 17:02:10 -0500 |
| commit | a6edb81626a56b266f3ac4f4907e595a7987b3ab (patch) | |
| tree | fded69dae74c2bd7bb70e161060c034565bcfd7f | |
| parent | 10b8ebf83e008687d9b7b439f1d59fabe13287ce (diff) | |
| download | vim-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.vim | 5 |
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>") |
