Skip to content

Commit

Permalink
Add vim setting
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchen committed Jul 6, 2018
1 parent ea5afb5 commit 93362df
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions developers/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Vagrant.configure("2") do |config|
config.vm.define vm_name = 'vortex'

config.vm.provision "file", source: "configs/docker.conf", destination: "/tmp/override.conf"
config.vm.provision "file", source: "configs/.vimrc", destination: "$HOME/.vimrc"
config.vm.provision "shell", privileged: false, inline: <<-SHELL
set -e -x -u
sudo mkdir -p "/etc/systemd/system/docker.service.d/"
Expand Down Expand Up @@ -70,6 +71,16 @@ Vagrant.configure("2") do |config|
if [ ! -d "${PROTOC_TARGET}" ]; then curl -fsSL "$PROTOC_RELEASE" > "${PROTOC_TARGET}.zip"; fi
if [ -f "${PROTOC_TARGET}.zip" ]; then unzip "${PROTOC_TARGET}.zip" -d "${PROTOC_TARGET}"; fi
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
# install vim environment
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
# init YouCompleteMe vim plugin
sudo apt-get install -y build-essential cmake
sudo apt-get install -y python-dev python3-dev
cd ~/.vim/bundle/YouCompleteMe
./install.py --go-completer
SHELL

config.vm.network :private_network, ip: "172.17.8.100"
Expand Down
22 changes: 22 additions & 0 deletions developers/configs/.vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
set nocompatible " be iMproved, required
filetype off " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'c9s/helper.vim'
Plugin 'c9s/treemenu.vim'
Plugin 'c9s/vikube.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'c9s/hypergit.vim'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'fatih/vim-go', {'do': ':GoInstallBinaries'}
Plugin 'Valloric/YouCompleteMe'

call vundle#end() " required
filetype plugin indent on " required

0 comments on commit 93362df

Please sign in to comment.