VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.92k stars 2.58k forks source link

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

Open davidawad opened 7 years ago

davidawad commented 7 years ago

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:

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

vimishor commented 7 years ago

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