Hi,

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.

PS: I did the patch with hg.

Cheers,

--
Jérôme

--
--
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff -r 8bb4ca7fba40 runtime/filetype.vim
--- a/runtime/filetype.vim	Wed Oct 22 22:09:01 2014 +0200
+++ b/runtime/filetype.vim	Fri Oct 31 14:25:27 2014 +0100
@@ -781,7 +781,7 @@
 au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
 au BufNewFile,BufRead *.git/modules/*/COMMIT_EDITMSG setf gitcommit
 au BufNewFile,BufRead *.git/modules/*/config	setf gitconfig
-au BufNewFile,BufRead */.config/git/config	setf gitconfig
+au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config */.config/git/config	setf gitconfig
 au BufNewFile,BufRead git-rebase-todo		setf gitrebase
 au BufNewFile,BufRead .msg.[0-9]*
       \ if getline(1) =~ '^From.*# This line is ignored.$' |

Raspunde prin e-mail lui