On 2013-03-23, Dotan Cohen wrote:
> I notice that some settings use the format ':set name=value' and other
> use ':name value'. For instance:
> :set syntax=php
> :syntax off
> 
> Can the string 'set ' always be safely elided? If not, then what are
> the guidelines?

':name value' is not a setting, it is a command that accepts an
argument.

In ":set syntax=php", syntax is an option.  See

    :help 'syntax'

In ":syntax off", syntax is a command.  See

    :help :syn-qstart

(I would normally have directed you to ":help :syntax", but that
section is not very helpful in this regard.)

The syntax option and the syntax command are two different things
that happen to share the same name.

Regards,
Gary

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" 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/groups/opt_out.


Reply via email to