From 20431429bbd90064184f27b31ba3870a1aebbbaa Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 29 Apr 2013 15:29:20 -0400 Subject: [PATCH] Setup vim / plugins --- .gitmodules | 3 +++ .vim/bundle/vundle | 1 + .vimrc | 20 ++++++++++++++++---- README | 1 + 4 files changed, 21 insertions(+), 4 deletions(-) create mode 160000 .vim/bundle/vundle diff --git a/.gitmodules b/.gitmodules index b66fe48..89a9bfe 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule ".oh-my-zsh"] path = .oh-my-zsh url = https://github.com/robbyrussell/oh-my-zsh.git +[submodule "/home/atomaka/.vim/bundle/vundle"] + path = /home/atomaka/.vim/bundle/vundle + url = http://github.com/gmarik/vundle.git diff --git a/.vim/bundle/vundle b/.vim/bundle/vundle new file mode 160000 index 0000000..3dcb0c3 --- /dev/null +++ b/.vim/bundle/vundle @@ -0,0 +1 @@ +Subproject commit 3dcb0c32991026d0d226aaad57b622c6553cd0db diff --git a/.vimrc b/.vimrc index d656219..7a80b67 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,17 @@ +" Plugins +execute pathogen#incubate() +execute pathogen#infect() + +set rtp+=~/.vim/bundle/vundle/ +call vundle#rc() + +Bundle 'gmarik/vundle' + +Bundle 'tpope/vim-rails' +Bundle 'tpope/vim-repeat' +Bundle 'tpope/vim-surround' +Bundle 'vim-scripts/ruby-matchit' + " Options set nocompatible " Disable vi compatibility set ffs=unix,dos " File format prefer unix endings @@ -26,11 +40,8 @@ set softtabstop=2 set shiftwidth=2 set expandtab -" Plugins -execute pathogen#incubate() -execute pathogen#infect() - " Filetype stuff +syntax on filetype on filetype plugin on filetype indent on @@ -44,6 +55,7 @@ imap :w let mapleader = "," map s :e ~/Source/ +map nc :Nyancat " Set style set guifont=Ubuntu\ Mono\ 10 diff --git a/README b/README index e8a6bf9..1c7c4bf 100644 --- a/README +++ b/README @@ -5,4 +5,5 @@ git clone repo mv dotfiles/* . git submodule update --init source .zshrc +:BundleInstall inside of vim