thinca/vim-localrc — pull request #2 by inkarkat (2012-06-08 08:00:23+00:00)
Title: Various Enhancements

Hello thinca-san,

I have been using your excellent plugin for quite some time, as I found it to be the best among various "local configuration" plugins, especially because it allows both global and filetype-specific configuration.

Using the latter, though, I found some inconsistencies, especially in the order of sourcing, that were frustrating my attempts to define global configuration in a .local.vimrc and then override some of that in a filetype-specific localrc.

I have extended the plugin logic to deal with this in the correct order (which is somewhat complex, necessitating a hook into Vim's ftplugin.vim script), but now it works satisfactorily for all my advanced uses.

Please have a look at my changes, maybe try them out yourself, and feel free to incorporate some or all of them into your official plugin version, so that other users can benefit from my extensions, too.