Jerome Reybert wrote:
> this is my first patch to vim, I hope I do it right
>
> I recently started to use the xdg environment, more specifically the
> environement variable XDG_CONFIG_HOME, to move some of my configuration
> files, such as .gitconfig. I set XDG_CONFIG_HOME to something else than
> ~/.config .
>
> There are plenty of rules to set the filetype of gitconfig file, but the
> xdg is missing.
>
> As xdg is kind of standard (at least git recognizes as is), I feel that
> this rule should be added in vimruntime.
The idea seems right, but $XDG_CONFIG_HOME may not be defined, in which
case the pattern is wrong. This can be avoided by adding an "if" with
the condition that the environement variable is set, otherwise falling
back to the old value.
--
ARTHUR: I did say sorry about the `old woman,' but from the behind you
looked--
DENNIS: What I object to is you automatically treat me like an inferior!
ARTHUR: Well, I AM king...
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.