Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2013 11:26
Show Gist options
  • Save anonymous/7526313 to your computer and use it in GitHub Desktop.
Save anonymous/7526313 to your computer and use it in GitHub Desktop.
" Extra packages {{{
Bundle "nono/vim-handlebars"
Bundle "leshill/vim-json"
Bundle "tpope/vim-bundler"
Bundle "fholgado/minibufexpl.vim"
Bundle "wavded/vim-stylus"
Bundle "altercation/vim-colors-solarized"
Bundle 'AutoTag'
Bundle "SuperTab"
" }}}
" Reset to preferred behaviour {{{
set norelativenumber
set number
" }}}
" Extra setup {{{
" General {{{
set softtabstop=2
set shiftwidth=2
set shell=/usr/local/bin/zsh
map <C-h> <C-w>h
map <C-l> <C-w>l
map <C-k> <C-w>k
map <C-j> <C-w>j
" }}}
" Colour {{{
set t_Co=256
set background=dark
colorscheme hybrid
" }}}
" Ruby {{{
au BufRead,BufNewFile Gemfile set filetype=ruby
au BufRead,BufNewFile Cheffile set filetype=ruby
au BufRead,BufNewFile Berksfile set filetype=ruby
au BufRead,BufNewFile Vagrantfile set filetype=ruby
au BufRead,BufNewFile Guardfile set filetype=ruby
autocmd FileType ruby,eruby set shiftwidth=2
autocmd FileType ruby,eruby set softtabstop=2
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
" }}}
" RSpec {{{
nmap <silent> <leader>sr :call RunRspecRelated()<cr>
nmap <silent> <leader>sf :call RunRspecCurrentFileConque()<cr>
nmap <silent> <leader>os :call RelatedSpecOpen()<cr>
" }}}
" JSON {{{
autocmd FileType json set shiftwidth=2
autocmd FileType json set softtabstop=2
autocmd FileType json set autoindent
autocmd FileType json set expandtab
" }}}
" Minibuf {{{
let g:miniBufExplorerMoreThanOne = 0
let g:miniBufExplVSplit = 20
let g:miniBufExplSplitBelow=0
let g:miniBufExplMaxSize = 30
let g:miniBufExplMinSize = 30
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplorerHideWhenDiff = 1
" }}}
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment