]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/zshfe.vim
Detect already loaded code with simpler <SID> check
[dotfiles.git] / vim / .vim / plugin / zshfe.vim
index fd5e5b14616596802f7eaf01e804e34e0eadb936..cd9cc07d1479e154bc6f7b0274f2ccd1b96e75f0 100644 (file)
@@ -2,8 +2,7 @@
 " Maintainer: Sergey Matveev <stargrave@stargrave.org>
 " License: GNU General Public License version 3 of the License or later
 
-if exists("g:loaded_zshfe") | finish | endif
-let g:loaded_zshfe = 1
+if exists('*<SID>zshfe') | finish | endif
 if !exists("g:zshfe_path") | let g:zshfe_path=expand("~/.vim/plugin/zshfe.zsh") | endif
 
 function! s:zshfe(query, opencmd)