-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvim2ide.sh
More file actions
executable file
·65 lines (55 loc) · 1.73 KB
/
vim2ide.sh
File metadata and controls
executable file
·65 lines (55 loc) · 1.73 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#/bin/bash
# Prepare vim for development
# ...according to my preferences
# author: raymond colebaugh
PACKAGES="vim exuberant-ctags "
PATHOGEN='https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim'
if [ "$1" == 'install' ]; then
# Install necessary packages
sudo apt-get install -y $PACKAGES
fi
# Download more plugins
if [ ! -d ~/.vim/autoload ];
then
mkdir -p ~/.vim/{autoload,bundle,plugin} && cd ~/.vim
curl -LSso autoload/pathogen.vim ${PATHOGEN}
else
cd ~/.vim
fi
cd bundle
for url in majutsushi/tagbar scrooloose/nerdtree.git tpope/vim-rails.git \
tpope/vim-fugitive.git rodjek/vim-puppet tpope/vim-surround.git \
scrooloose/syntastic.git vim-scripts/DBGp-Remote-Debugger-Interface \
msanders/snipmate.vim MarcWeber/vim-addon-mw-utils.git honza/vim-snippets \
vim-airline/vim-airline
do
expect_dir=~/.vim/bundle/`basename $url | sed 's/\.git$//'`
if [ ! -d ${expect_dir} ]
then
git clone git://github.com/${url}
fi
done
# Move debugger script into vim plugin root for autoloading
if [ ! -f ~/.vim/plugin/debugger.py ]
then
mv ~/.vim/bundle/DBGp-Remote-Debugger-Interface/plugin/debugger.py ~/.vim/plugin
fi
# Get vim preferences
if [ ! -f ~/.vimrc-x ]; then
for file in vimrc vimrc-x; do
wget https://raw.githubusercontent.com/raymondcolebaugh/dotfiles/master/${file}
mv $file ~/.${file}
done
fi
# Aliases
grep '~/\.vimrc-x' ~/.bashrc > /dev/null
if [ $? -ne 0 ]; then
cat >> ~/.bashrc << HERE
# enable Blowfish encryption
alias vix="vi -u ~/.vimrc-x -x"
# Enable less-style vim for syntax highlighting.
if [ -e /usr/share/vim/vim73/macros/less.sh ]; then
alias less="/usr/share/vim/vim73/macros/less.sh"
fi
HERE
fi