Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run specific commands along with plugin installs? #815

Open
davidawad opened this issue May 15, 2017 · 1 comment
Open

Comments

@davidawad
Copy link

davidawad commented May 15, 2017

QUESTION / FEATURE REQUEST:

I recently have come upon an obscure problem. I'm moving all of my dotfiles into a git repo and I manage my vim plugins with vundle.

When my vim plugins into my new dotfiles repo, all of my vundle plugins that are git repos are not treated like regular folders or submodules in git, so my git status looks like this:

	modified:   readme.md
	modified:   sh_env
	modified:   vim/bundle/ag.vim (modified content)
	modified:   vim/bundle/ctrlp.vim (modified content)
	modified:   vim/bundle/jellybeans.vim (modified content)
	modified:   vim/bundle/nerdtree (modified content)
	modified:   vim/bundle/rust.vim (modified content)
	modified:   vim/bundle/syntastic (modified content)
	modified:   vim/bundle/vim-airline (modified content)
	modified:   vim/bundle/vim-airline-themes (modified content)
	modified:   vim/bundle/vim-coffee-script (modified content)
	modified:   vim/bundle/vim-colors-solarized (modified content)
	modified:   vim/bundle/vim-fugitive (modified content)
	modified:   vim/bundle/vim-gitgutter (modified content)
	modified:   vim/bundle/vim-powerline (modified content)
	modified:   vim/bundle/vim-rails (modified content)
	modified:   vim/bundle/vim-rake (modified content)
	modified:   vim/bundle/vim-sensible (modified content)
	modified:   vim/bundle/vim-slim (modified content)
	modified:   vim/bundle/vim-surround (modified content)
	modified:   vim/bundle/vim-textobj-rubyblock (modified content)
	modified:   vim/bundle/vim-textobj-user (modified content, untracked content)
	modified:   vim/bundle/vim-toml (modified content)
	modified:   vim/bundle/vundle (modified content)

I can't commit the subrepos this way, so I can't get all of my dotfiles onto other machines.

What is the best way to solve this problem? Just off the top of my head there is the following:

  • use some automated script to convert all current folders into submodules (not ideal)
  • Use a script that can be called during :PluginUpdate to add the package as a submodule as well.
  • Give Vundle the ability to install plugins as submodules instead of as actual repos (ideal solution)

What do you think is best for how to proceed? Thanks for your help.

@vimishor
Copy link

Just to be clear, something like #804 is what you want ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants