diff --git a/install.sh b/install.sh index 2d4612e..28aa3c1 100755 --- a/install.sh +++ b/install.sh @@ -66,12 +66,21 @@ then ln -sf ~/.dotfiles/git/gitconfig ~/.gitconfig fi -if [[ -f ~/.dotfiles/ssh ]] +if [[ -d ~/.dotfiles/ssh ]] then echo "Installing ssh configuration ..." rm -rf ~/.ssh ln -sf ~/.dotfiles/ssh ~/.ssh fi +if [[ -d ~/.dotfiles/vim ]] +then + echo "Installing vim configuration ..." + rm -rf ~/.vim* + mkdir -p ~/.vim/bundle + git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim + cp ~/.dotfiles/vim/vimrc ~/.vimrc +fi + . ~/.bashrc diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..05cb837 --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,21 @@ +set nocompatible " required +filetype off " required + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" alternatively, pass a path where Vundle should install plugins +"call vundle#begin('~/some/path/here') + +" let Vundle manage Vundle, required +Plugin 'gmarik/Vundle.vim' + +" add all your plugins here (note older versions of Vundle +" used Bundle instead of Plugin) + +" ... + +" All of your Plugins must be added before the following line +call vundle#end() " required +filetype plugin indent on " required