Commits

Michaux Kelley committed b62703d

Add vimrc for ruby

Comments (0)

Files changed (1)

+" See also > Coming Home to Vim, Steve Losh
+" http://stevelosh.com/blog/2010/09/coming-home-to-vim/
+" http://mirnazim.org/writings/vim-plugins-i-use/
+
+set rtp+=~/.vim/bundle/vundle
+call vundle#rc()
+
+Bundle 'gmarik/vundle'
+
+Bundle 'danchoi/ruby_bashrockets.vim'
+Bundle 'edsono/vim-matchit'
+Bundle 'godlygeek/tabular'
+Bundle 'kchmck/vim-coffee-script'
+Bundle 'majutsushi/tagbar'
+Bundle 'mileszs/ack.vim'
+Bundle 'scrooloose/nerdcommenter'
+Bundle 'scrooloose/nerdtree'
+Bundle 'scrooloose/syntastic'
+Bundle 'sjl/gundo.vim'
+Bundle 'taq/vim-rspec'
+Bundle 'tpope/vim-cucumber'
+Bundle 'tpope/vim-endwise'
+Bundle 'tpope/vim-fugitive'
+Bundle 'tpope/vim-haml'
+Bundle 'tpope/vim-rails'
+Bundle 'tpope/vim-rvm'
+Bundle 'tpope/vim-unimpaired'
+Bundle 'daviddavis/vim-colorpack'
+Bundle 'kien/ctrlp.vim'
+
+" Plugin: vim-pathogen
+" https://github.com/tpope/vim-pathogen
+" http://www.vim.org/scripts/script.php?script_id=2332
+" Note that you need to invoke the pathogen functions before invoking 'filetype
+" plugin indent on' if you want it to load ftdetect files. On Debian (and probably 
+" other distros), the system vimrc does this early on, so you actually need to 
+" 'filetype off' before 'filetype plugin indent on' to force reloading.
+filetype off
+call pathogen#runtime_append_all_bundles()
+call pathogen#helptags()
+filetype plugin on
+
+" Remove vi compatibility. Why?
+" Acccording to Steve Losh you gain functionality by do this.
+set nocompatible
+set foldmethod=indent
+set foldlevel=9999
+" Not sure what modelines are, but apparently they open a security
+" exploit so lets kill 'em.
+set modelines=0
+
+set tabstop=2
+set shiftwidth=2
+set softtabstop=2
+set expandtab
+
+set guioptions-=m  "remove menu bar
+set guioptions-=T  "remove toolbar
+set guioptions-=r  "remove right-hand scroll bar
+
+" Other reasonable defaults
+set encoding=utf-8
+set scrolloff=10
+set autoindent
+set visualbell
+set cursorline
+set ttyfast
+set ruler
+set undofile
+let mapleader = ","
+nnoremap / /\v
+vnoremap / /\v
+set ignorecase
+set smartcase
+set gdefault
+set incsearch
+set showmatch
+set hlsearch
+set wrap
+set textwidth=79
+set formatoptions=qrn1
+set list
+set listchars=tab:▸\ ,eol:¬
+set number
+syntax on
+"set transp=9
+set t_Co=256
+set background=dark
+colorscheme molokai
+set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)
+set guifont=Menlo:h12
+" turn off blinking cursor in command mode
+set gcr=n:blinkon0
+set lazyredraw
+
+" I can't type
+cmap W w
+cmap Wa wa
+cmap WA wa
+cmap Wq wq
+
+" Handlebars syntax highlighting
+" https://github.com/nono/vim-handlebars
+" http://www.vim.org/scripts/script.php?script_id=3638
+au BufRead,BufNewFile *.handlebars,*.hbs set ft=handlebars
+
+" Press enter to clear highlighting
+noremap - :nohl<cr>-
+noremap <cr> :nohl<cr><cr>
+