]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/ggrep.vim
Detect already loaded code with simpler <SID> check
[dotfiles.git] / vim / .vim / plugin / ggrep.vim
index 7b52921113ff525e61bca15bf3c45828d7fa4f9a..8a9bd8a5b70db4d8247446d045cf6b150be78747 100644 (file)
@@ -1,5 +1,4 @@
-if exists("g:loaded_mein_ggrep") | finish | endif
-let g:loaded_mein_ggrep = 1
+if exists('*<SID>Vmg') | finish | endif
 
 function! s:Vmg(pattern)
     silent execute 'Ggrep "' . a:pattern . '"'