if_feat_check.vim (381B)
1 if 1 " This prevents it from being run in tiny versions 2 " Check for required features 3 if exists("g:required") 4 for feature in g:required 5 if !has(feature) 6 echo "Error: Feature '" .. feature .. "' not found" 7 echo '' 8 cquit 9 endif 10 endfor 11 echo "\nChecked features: " .. string(g:required) 12 echo '' 13 endif 14 endif 15 " vim: sts=2 sw=2 et