-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·32 lines (29 loc) · 793 Bytes
/
setup
File metadata and controls
executable file
·32 lines (29 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
vimrc_file=~/.vimrc
vc_vimrc_file=~/.vim/.vimrc
vim_backup=~/.vimbackup
#vundle_file=~/.vim/bundle/Vundle.vim
#vundle_url=https://github.com/VundleVim/Vundle.vim.git
ftdetect=~/.vim/ftdetect
ultisnips_ftdetect=~/.vim/bundle/ultisnips/ftdetect/*
if [ -f $vimrc_file ]; then
echo Removing old .vimrc ...
rm $vimrc_file
fi
echo Linking .vimrc ...
ln -s $vc_vimrc_file $vimrc_file
if [ ! -d $vim_backup ]; then
echo Creating $vim_backup directory ...
mkdir $vim_backup
fi
#if [ ! -d $vundle_file ]; then
# echo Attempting to clone Vundle
# git clone $vundle_url $vundle_file
#fi
echo Installing plugins ...
vim +PlugInstall +qall
echo Setting up ftdetect for ultisnips
if [ ! -d $ftdetect ]; then
mkdir $ftdetect
ln -s $ultisnips_ftdetect $ftdetect
fi