-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-vim
More file actions
executable file
·40 lines (35 loc) · 1.44 KB
/
setup-vim
File metadata and controls
executable file
·40 lines (35 loc) · 1.44 KB
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
33
34
35
36
37
38
39
40
#!/bin/bash
# Downloading .vimrc if necessary
if [ ! -d ~/dotfiles ]; then
echo 'dotfiles directory not found! Downloading .vimrc directly to '$HOME
curl https://raw.githubusercontent.com/adrianovalente/dotfiles/master/vimrc.vim > ~/.vimrc
else
echo 'Linking vimrc.symlink to home...'
cp ~/dotfiles/vimrc.vim ~/.vimrc
fi
# Installing Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
function install_plugin {
local plugin_path="$HOME/.vim/bundle/$(echo $1 | cut -d/ -f5 | cut -d. -f1)"
echo $plugin_path
if [ ! -d $plugin_path ]; then
git clone $1 $plugin_path
else
git -C $plugin_path pull
fi
}
# Installing Exstentions
install_plugin https://github.com/ctrlpvim/ctrlp.vim.git
install_plugin https://github.com/scrooloose/nerdtree.git
install_plugin https://github.com/flazz/vim-colorschemes.git
install_plugin https://github.com/tpope/vim-fugitive.git
install_plugin https://github.com/romgrk/winteract.vim.git
install_plugin https://github.com/vim-syntastic/syntastic.git
install_plugin https://github.com/altercation/vim-colors-solarized.git
install_plugin git://github.com/airblade/vim-gitgutter.git
# Clojure/JVM Extensions
install_plugin https://github.com/tpope/vim-classpath.git
install_plugin https://github.com/guns/vim-clojure-static
install_plugin https://github.com/kien/rainbow_parentheses.vim
install_plugin https://github.com/tpope/vim-fireplace.git