Sunday, March 31, 2013

Re: Can 'set ' be elided? When?

On Sat, Mar 23, 2013 at 12:58 AM, Paul Isambert <zappathustra@free.fr> wrote:
>> I notice that some settings use the format ':set name=value' and other
>> use ':name value'. For instance:
>> :set syntax=php
>> :syntax off
>
> Note that ":syntax php" doesn't work.
>
>> Can the string 'set ' always be safely elided?
>
> No.
>
>> If not, then what are the guidelines?
>
> As far as I can tell, there aren't any. Some commands have the same name as
> options (e.g. :filetype and 'filetype', :confirm and 'confirm'), but they don't
> do the same things.
>
> Best,
> Paul
>

I notice that the following doesn't work:
:syntax php

However the following does work:
:colorscheme desert

Why is "syntax" an option yet "colorscheme" a command?



--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: