Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

136 lines (113 sloc) 3.258 kB
" Load all plugins in bundles
call pathogen#runtime_append_all_bundles()
:set guifont=Monaco:h12
:set guioptions-=T
let mapleader=","
set autoindent
set bs=2
set clipboard=unnamed
set completeopt=longest,menuone
set expandtab
set grepformat=%f:%l:%m
set grepprg=ack
set hidden
set ignorecase
set incsearch
set nocompatible
set nohlsearch
set nowrap
set number
set ruler
set shiftwidth=2
set softtabstop=2
set tabstop=2
set smartcase
set smartindent
set smarttab
set wildmenu
set wildmode=longest,list,full
colorscheme vividchalk
syntax on
filetype on
filetype plugin indent on
compiler ruby
" Fix typos
cabbr W w
cabbr Q q
map <F1> <Esc>
imap <F1> <Esc>
" close the current buffer, doesn't close the window
noremap <leader>w :Bclose<cr>
" close the current window and buffer
noremap <leader>q :bd<cr>
" close the current window, doesn't close the buffer
noremap <leader>Q :close<cr>
" Find in cwd/"project"
noremap <leader>f :AckWithIgnore ''<Left>
noremap <leader>F :AckWithIgnore
" Run the current file. Uses .vim/ruby/run_file.rb
noremap <leader>r :RunFile<cr>
noremap <leader>R :RunFileAtLine<cr>
" Textmate CMD-t emulation
let g:fuf_enumeratingLimit = 25
map <leader>t :FufTaggedFile<CR>
map <leader>T :FufTag<CR>
map <leader><C-t> :RegenTags<CR>:FufRenewCache<CR>
map <leader>l :FufLine<CR>
" bring up buffer list. ,,<CR> switches to last used buffer
map <leader>, :FufBuffer<CR>
" like browse to a file with a convenient ,t-like interface
map <leader>e :FufFile<CR>
" comment out a line
map <leader>/ :TComment<Return>
" used to set the clipboard buffer to system clipboard. example use: ,cp to
" paste from clipboard
map <leader>c "*
" Redraw screen
map <leader>d :redraw!<CR>
" Window split vertical
noremap <leader>v :vsplit<CR>
" Remove all window splits
noremap <leader>o :only<CR>
" autocmd FileType ruby,eruby set omnifunc=rubycomplete ai sw=2 sts=2 et
if has("autocmd")
filetype indent on
" global variables that can be overridden or appended to in .vim in the cwd to
" customize stuff
" folders that should be ignored
let g:vim_ignore = ["vendor", "log", "tools"]
" extensions that should be included in tag files
let g:taggable_extensions = [
\ 'c',
\ 'coffee',
\ 'css',
\ 'erb',
\ 'feature',
\ 'java',
\ 'js',
\ 'haml',
\ 'php',
\ 'rake',
\ 'rb',
\ 'sass',
\ 'thor',
\ 'yaml',
\ 'yml',
\ 'sass',
\ ]
" load .vim in the current directory if it exists
if filereadable(".vim")
source .vim
if exists('g:vim_ignore')
if !exists('g:fuzzy_ignore')
let g:fuzzy_ignore=join(map(copy(g:vim_ignore), 'v:val . "/**"'), ",")
if !exists('g:ack_ignore')
let g:ack_ignore=copy(g:vim_ignore)
" clojure configuration
let clj_highlight_builtins = 1
let clj_paren_rainbow = 1
Jump to Line
Something went wrong with that request. Please try again.