diff --git a/developers/Vagrantfile b/developers/Vagrantfile index cbfde60b..2a93714a 100644 --- a/developers/Vagrantfile +++ b/developers/Vagrantfile @@ -75,6 +75,7 @@ Vagrant.configure("2") do |config| # install vim environment git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim vim +PluginInstall +qall + vim +GoInstallBinaries +qall # init YouCompleteMe vim plugin sudo apt-get install -y python-dev python3-dev diff --git a/developers/configs/.vimrc b/developers/configs/.vimrc index 1c7f4424..493e3260 100644 --- a/developers/configs/.vimrc +++ b/developers/configs/.vimrc @@ -19,5 +19,12 @@ Plugin 'fatih/vim-go', {'do': ':GoInstallBinaries'} Plugin 'Valloric/YouCompleteMe' Plugin 'scrooloose/nerdtree' +function! StartUp() + if 0 == argc() + NERDTree + end +endfunction +autocmd VimEnter * call StartUp() + call vundle#end() " required filetype plugin indent on " required