Skip to content

Instantly share code, notes, and snippets.

@d11wtq
Created May 24, 2012 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d11wtq/2781339 to your computer and use it in GitHub Desktop.
Save d11wtq/2781339 to your computer and use it in GitHub Desktop.
.vimrc al Chippie
" actually run as vim, not vi
set nocompatible
" 256-color terminal
set t_Co=256
" utf-8 by default
set encoding=utf-8
" vundle requires turning off filetypes momentarily
filetype off
" include vundle on the runpath
set rtp+=~/.vim/bundle/vundle/
" initialize vundle
call vundle#rc()
" let vundle manage itself
Bundle 'gmarik/vundle'
" ruby mode (might not be needed, w/ vim-rails?)
Bundle 'vim-ruby/vim-ruby'
" better tab completion
Bundle 'ervandew/supertab'
" erb support and the likes
Bundle 'tpope/vim-rails'
" solarized color theme
Bundle 'altercation/vim-colors-solarized'
" mustang theme
Bundle 'croaker/mustang-vim'
" php mode stuff
Bundle 'tobyS/vip'
" trailing whitespace annoyances
Bundle 'bronson/vim-trailing-whitespace'
" git integration
Bundle 'tpope/vim-fugitive'
" show current line and col in status bar
set ruler
" show filename in status bar
set title
" line numbers
set number
" always show current mode in status bar
set showmode
" tab completion done better
set wildmode=list:full
" allow opening new files while edits are kept
set hidden
" highlight matches in search
set hlsearch
" show matches while typing
set incsearch
" fuck ~backup files
set nobackup
" fuck ~backup files during editing
set nowritebackup
" fuck .swp files
set noswapfile
" force blank lines at end of file
set eol
" disallow assumption of binary (noeol) mode
set nobinary
" needed for most plugins to work
filetype plugin indent on
" spaces, not tabs
set expandtab
" not sure, will check
set shiftwidth=2
" soft tabs are 2 spaces
set softtabstop=2
" override tab settings for php
autocmd FileType php setlocal noexpandtab shiftwidth=2 tabstop=2
" allow syntaxes
syntax on
" always show the status line
set laststatus=2
set statusline=%<%f\ %{fugitive#statusline()}\ %h%m%r%=%-14.(%l,%c%V%)\ %P
" purdy colors
set background=dark
colorscheme mustang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment