I've been playing around with Dockerfiles, and in setting up a development environment, there is one manual step I haven't been able to work around yet. To install the bundles in my vimrc, I have to open vim, and then it downloads them all and says to press enter to continue. I would like to do this step as a RUN command in the Dockerfile. I've tried using
vim -c 'q', which runs the command
:q when vim opens, but the auto bundle install script still requires pressing enter, and it doesn't work anyway, as vim complains that the input and output are not to a terminal.
I would like to do this with Dockerfiles, rather than images
Here is the section of my .vimrc that seems relevant
" Setting up Vundle - the vim plugin bundler let iCanHazVundle=1 let vundle_readme=expand('~/.vim/bundle/vundle/README.md') if !filereadable(vundle_readme) echo "Installing Vundle.." echo "" silent !mkdir -p ~/.vim/bundle silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle let iCanHazVundle=0 endif set rtp+=~/.vim/bundle/vundle/ call vundle#rc() call GetBundles() if iCanHazVundle == 0 echo "Installing Bundles, please ignore key map error messages" echo "" silent :BundleInstall endif " Setting up Vundle - the vim plugin bundler end