Skip to content

Instantly share code, notes, and snippets.

@nordringrayhide
Created March 19, 2012 09:16
Show Gist options
  • Save nordringrayhide/2104598 to your computer and use it in GitHub Desktop.
Save nordringrayhide/2104598 to your computer and use it in GitHub Desktop.
My vimrc file
#!/bin/sh
mkdir -p ~/.vim/bundle/vundle
git clone git://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
wget https://raw.github.com/gist/2104598/fb27ed1e0434575ede483df96692d93a626b1116/vimrc-with-vandle-support.vim \
-O ~/.vimrc
vim +BundleInstall +qall
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
"
" My Bundles here:
"
" original repos on github
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'romanvbabenko/rails.vim'
Bundle 'tComment'
Bundle 'romanvbabenko/snipmate.vim'
Bundle 'tpope/vim-fugitive'
" non github repos
Bundle "git://github.com/timcharper/textile.vim.git"
Bundle "git://github.com/tpope/vim-markdown.git"
Bundle "git://github.com/jinfield/vim-nginx.git"
Bundle "git://github.com/tpope/vim-haml.git"
Bundle "git://github.com/leshill/vim-json.git"
Bundle "git://github.com/tmatilai/vim-monit.git"
Bundle "git://github.com/t9md/vim-chef.git"
Bundle "asciidoc.vim"
Bundle "wgibbs/vim-irblack"
filetype plugin indent on " required!
syntax enable
set tabstop=2
set expandtab
set shiftwidth=2
set list
set backspace=indent,eol,start
set listchars=""
set listchars=tab:\ \
set listchars+=trail:.
set listchars+=extends:>
set listchars+=precedes:<
set number
set ruler
set showcmd
set laststatus=2
set hlsearch
set incsearch
set ignorecase
set smartcase
"TODO should be handle exception if colorscheme not exists
colorscheme ir_black " koehler
" Automatically removing all trailing whitespace
autocmd BufWritePre * :%s/\s\+$//e
" Statusline
if has("statusline") && !&cp
set laststatus=2 " always show the status bar
" Start the status line
set statusline=%f\ %m\ %r
" Add fugitive
set statusline+=%{fugitive#statusline()}
" Finish the statusline
set statusline+=Line:%l/%L[%p%%]
set statusline+=Col:%v
set statusline+=Buf:#%n
set statusline+=[%b][0x%B]
endif
set nocompatible
syntax enable
set tabstop=2
set expandtab
set shiftwidth=2
set list
set backspace=indent,eol,start
set listchars=""
set listchars=tab:\ \
set listchars+=trail:.
set listchars+=extends:>
set listchars+=precedes:<
set number
set ruler
set showcmd
set laststatus=2
set hlsearch
set incsearch
set ignorecase
set smartcase
colorscheme koehler
" Automatically removing all trailing whitespace
autocmd BufWritePre * :%s/\s\+$//e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment