The error on :let is due to that command not being available in builds
with -eval, i.e. in Tiny and Small builds.
One possible solution is to guard it with
if 1 " equivalent with :if has('eval')
...
...
...
endif
because builds without +eval treat if..endif (when at start of line)
as a nestable comment. See ":help no-eval-feature" for details.
+packages, like +eval, is included in Normal builds and higher, so the
above should be enough, unless you want to guard against the
possibility that someone might compile a build with +eval and
-packages by fine-tuning the feature.h. For this, any "packages"
command should be guarded on its own by
if has("packages")
...
endif
inside the "if 1" (or "if has('eval')") block.
Best regards,
Tony.
On Mon, Jun 20, 2016 at 4:40 PM, fjaell <[email protected]> wrote:
> Patch 7.4.1649 adds unconditionally
>
> pkgadd matchit
>
> to the example vimrc. This breaks builds with the tiny and small feature set
> if the default vimrc is used.
>
> ?> vi
> Error detected while processing
> /usr/share/vim/pack/dist/opt/matchit/plugin/matchit.vim:
> line 44:
> E319: Sorry, the command is not available in this version: let
> loaded_matchit = 1
> line 45
> ...
> following lots of similar error lines
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.