On 2017-02-07, Horgix wrote:
>     In a brief search for information on that include directive, I didn't find
>     anything about a naming convention for included files.
> 
> Indeed, it seems that there is no naming convention officially defined for
> that; however the need for a filetype detection is still there.
> 
>     If *.sshconfig is just your personal naming convention, I'd be reluctant 
> to
>     include it as part of standard Vim.
> 
> It may be seen as "personal" since it's not officially defined, but I think
> that it is reasonably close to what it should be and don't really see any 
> other
> possibility that wouldn't conflict with another filetype and would still be
> explicit about what it is; and it doesn't mean it couldn't be changed if some
> convention is defined in the future.

Since it's neither a standard nor recommended by OpenSSH, I doubt
that anyone is going to discover this convention unless they go
looking in $VIMRUNTIME/filetype.vim.

I can think of two alternatives that might be better.

1.  Identify as SSH configuration files those under the .ssh
    directory that have the commonly-used extension .conf:

        */.ssh/*.conf

    Since .conf is used by many programs for their configuration
    files, a user is more likely to try that than .sshconf.  There
    are several examples of this in $VIMRUNTIME/filetype.vim.

2.  Add the following line at the bottom of each included
    configuration file:

        # vim: ft=sshconfig

> If despite this you really are reluctant to include it as part of Vim, I guess
> I'll try to see if I can submit something to the openssh manual about that as
> an advice to users in an effort to standardize the extention for sshconfig
> files.
> Would that make it for you if it was to be accepted ?

If the OpenSSH folks were to suggest a standard naming convention
for included SSH config files, then it would make sense for Vim to
use that convention in its filetype detection.

My opinion doesn't carry any more weight than anyone else's on this
list.  I'm just offering my perspective.  It's up to Bram to accept
or reject your proposal.

Regards,
Gary

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

Raspunde prin e-mail lui