-
-
Save workmad3/7530288 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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/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 | |
try | |
colorscheme hybrid | |
catch /^Vim\%((\a\+)\)\=:E185/ | |
" deal with it | |
endtry | |
" }}} | |
" 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