comparison plugin/unreal.vim @ 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
comparison
equal deleted inserted replaced
9:b5040cfea052 10:8d3cd3988229
1 " unreal.vim - Work with the Unreal Engine in Vim 1 " unreal.vim - Work with the Unreal Engine in Vim
2 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> 2 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com>
3 3
4 " Globals {{{ 4 " Globals {{{
5
6 if exists('g:loaded_unreal') || &cp
7 finish
8 endif
9 let g:loaded_unreal = 1
5 10
6 if !(has('job') || (has('nvim') && exists('*jobwait'))) 11 if !(has('job') || (has('nvim') && exists('*jobwait')))
7 echoerr "unreal: this plugin requires the job API from Vim8 or Neovim." 12 echoerr "unreal: this plugin requires the job API from Vim8 or Neovim."
8 finish 13 finish
9 endif 14 endif