10 my $home = $ENV{'HOME'};
11 my $vimDir = dirname abs_path(__FILE__);
12 my $vimrc = $vimDir . "/vimrc";
14 ## test if vim and vimrc exist
15 die "~/.vim or ~/.vimrc exists!!.Backup them first.\n" if -e "$home/.vimrc" or -e "$home/.vim";
18 print `ln -s $vimDir $home/.vim`;
19 print `ln -s $vimrc $home/.vimrc`;
22 print "Link files Done.\n";
28 ## check Vundle installation
29 my $vundleDir = $vimDir . "/bundle/Vundle.vim";
31 if (not -e "$vundleDir"){
32 die "Vundle directory not exists, abort.\n";
33 } elsif (-s "$vundleDir") {
34 print " clone submodules \n";
36 ! system "git submodule init" or die $!;
37 ! system "git submodule update" or die $!;
39 print "Vundle exists and not empty.\n";
44 Please start vim and run :BundleInstall to install the dependencies plugins.
45 To install YouCompleteMe, go to the folder and run
46 ./install.py --clang-completer.