Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (47 sloc) 1.58 KB
call pathogen#infect()
syntax on
syntax enable
filetype plugin indent on
set background=dark
colorscheme desert
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>
nmap <silent> <c-n> :NERDTreeToggle<CR>
nmap <silent> f mzgg=G'z<CR
nmap <C-r> :CommandTFlush<CR>
nmap <silent> <C-t> :CommandT<CR>
let g:CommandTAcceptSelectionSplitMap=['<CR>', '<C-g>']
set wildignore+=**/tmp/**,log/**,**/uploads/**,app/assets/images,spec/fixtures/cassette_library/
set nolist
set nonumber
set tags+=gems.tags
autocmd BufWritePre * :%s/\s\+$//e
let NERDTreeIgnore = ['.zeus.sock']
let g:rspec_command = "!zeus rspec {spec}"
inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a
function! s:align()
let p = '^\s*|\s.*\s|\s*$'
if exists(':Tabularize') && getline('.') =~# '^\s*|' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
let column = strlen(substitute(getline('.')[0:col('.')],'[^|]','','g'))
let position = strlen(matchstr(getline('.')[0:col('.')],'.*|\s*\zs.*'))
Tabularize/|/l1
normal! 0
call search(repeat('[^|]*|',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endif
endfunction
augroup BgHighlight
autocmd!
autocmd WinEnter * set number
autocmd WinLeave * set nonumber
augroup END
au BufRead,BufNewFile *.scss set filetype=scss
au BufRead,BufNewFile *.rabl setf ruby
au BufRead,BufNewFile *.axlsx setf ruby
au BufRead,BufNewFile *.hamlc set ft=haml
let g:gist_post_private = 1