Mercurial > vim-unreal
changeset 10:8d3cd3988229
Add the usual vim plugin load protection
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 29 Aug 2023 13:07:00 -0700 |
parents | b5040cfea052 |
children | 06af9916ba7c |
files | plugin/unreal.vim |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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