Permalink
Browse files

Better install.sh, settings for .rb files

  • Loading branch information...
Detegr committed Jan 22, 2013
1 parent 53784d5 commit af1e799da120ade50c8d8d013ba144ed95c5b999
Showing with 22 additions and 3 deletions.
  1. +6 −0 .vim/vimrc
  2. +16 −3 install.sh
View
@@ -36,6 +36,12 @@ au BufEnter *.cpp set noexpandtab
au BufEnter *.py set noexpandtab
au BufEnter *.sh set noexpandtab
au BufEnter *.java set noexpandtab
+au BufEnter *.rb set expandtab
+au BufEnter *.rb set smartindent
+au BufEnter *.rb set ts=2
+au BufEnter *.rb set sw=2
+au BufEnter *.rb set softtabstop
+
if has("gui_running")
colorscheme sonofobsidian
View
@@ -1,8 +1,21 @@
#!/bin/bash
-mv $HOME/.vimrc $HOME/.vimrc_bak
-mv $HOME/.vim $HOME/.vim_bak
+if [[ -f "$HOME/.vimrc" ]]; then
+ echo "Backing up $HOME/.vimrc to $HOME/.vimrc_bak"
+ mv $HOME/.vimrc $HOME/.vimrc_bak
+fi
+if [[ -d "$HOME/.vim" ]]; then
+ echo "Backing up $HOME/.vim to $HOME/.vim_bak"
+ if [[ -d "$HOME/.vim_bak" ]]; then
+ echo "Removing old backup"
+ rm -r $HOME/.vim_bak
+ fi
+ mv $HOME/.vim $HOME/.vim_bak
+fi
git submodule init
git submodule update
+echo "Copying .vim to $HOME/.vim"
cp -r .vim/ $HOME/.vim
+echo "Copying new .vimrc to $HOME/.vimrc"
mv $HOME/.vim/vimrc $HOME/.vimrc
-vim +BundleInstall +qall
+echo "Installing bundles"
+vim +BundleClean +BundleInstall +qall

0 comments on commit af1e799

Please sign in to comment.