# HG changeset patch # User Ludovic Chabant # Date 1693339620 25200 # Node ID 8d3cd39882290a5ab0d108cdd73581c53d231ea5 # Parent b5040cfea052e6369683d055fbd257e9230dba25 Add the usual vim plugin load protection diff -r b5040cfea052 -r 8d3cd3988229 plugin/unreal.vim --- a/plugin/unreal.vim Tue Aug 29 13:06:44 2023 -0700 +++ b/plugin/unreal.vim Tue Aug 29 13:07:00 2023 -0700 @@ -3,6 +3,11 @@ " Globals {{{ +if exists('g:loaded_unreal') || &cp + finish +endif +let g:loaded_unreal = 1 + if !(has('job') || (has('nvim') && exists('*jobwait'))) echoerr "unreal: this plugin requires the job API from Vim8 or Neovim." finish