vim & git submodules: how to put my own files into submodules? -


i using vim pathogen , plugins installed submodules. works great, i've got problem 1 plugin - xptemplate. requires putting personal code snippets specific directory "bundle/xptemplate/personal/". i've created personal snippet ruby , put in "bundle/xptemplate/personal/ruby/ruby.xpt.vim" , works... doing "git submodule update" reverts work. , updating plugins thing time time. disadvantage cannot clone vim config on machine - had copy file manually.

is there way right? thought adding "personal/*" .gitignore file in "bundle/xptemplate". have not tested it, if worked solve problem reverting work submodule update, , not allow me push snippets github.

i appreciate help.

this independent of vim , pathogen, general answer how submodules can used.

if want modify submodule of project, must following:

  • end new commit checked out in submodule (for example committing it)

  • add updated submodule superproject, , commit that

so, if want change 1 of plugin submodules, edit away, before submodule update, commit them submodule, come superproject, add changes submodule, , commit there too.

you made comment "pushing [your changes] github." if want that, you'll need sure push changes in submodule too; superproject has able fetch needed commit of submodule check out! of course, means if you're using plugins written others , can't push them, you'll want throw version (a fork, if will) on github , use authoritative source superproject.

if need more adapting fit specific setup, leave me comment , i'll work you.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -