Monday, March 22, 2010

Re: issues with codde completion

On Sun, 21 Mar 2010, Jagpreet wrote:

> [...]
>
> but I was keen to know the reasons why exec "silent! runtime
> ".g:user_defined_snippets is failing.
>

Change:

exec "silent! runtime ".g:user_defined_snippets

to:

exec "runtime ".g:user_defined_snippets

and you'll get more informative error messages. Really, there's no
reason 'silent!' should be there for that command. It only hides
possibly-useful messages.

If anything inside your user snippets file produces extra output, you
should move the 'silent' (or 'silent!') modifier in front of that
specific command. There are other kinds of errors that might not truly
be 'errors', but if you deal with them individually, it will be better
in the long term.

For more:

:help :silent

--
Best,
Ben

--
You received this message from the "vim_use" 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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: