3 my $vim_git = $ENV{'PWD'};
4 my $vim_dir = "$ENV{'HOME'}/.vim";
5 my $vim_rc = "$ENV{'HOME'}/.vimrc";
7 ## test if vim and vimrc exist
8 die "~/.vim or ~/.vimrc exists!!, backup them first\n" if -e $vim_dir or -e $vim_rc ;
12 print `ln -s $vim_git $vim_dir`;
13 print `ln -s $vim_dir/vimrc $vim_rc`;
15 ## 1. git clone package manager Vundle
16 my $vundle_url = "https://github.com/gmarik/Vundle.vim.git";
19 system "git clone " . $vundle_url;
22 ## then start vim, and run :BundleInstall to install other packagesj
25 # 3. install YouCompleteMe
26 # ./install.py --clang-completer