Created
September 26, 2014 10:06
-
-
Save workmad3/9475ee7ec59578114c46 to your computer and use it in GitHub Desktop.
This file contains 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
" 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 background=dark | |
colorscheme grb256 | |
" }}} | |
" 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 | |
au BufRead,BufNewFile *.prawn set filetype=ruby | |
autocmd FileType ruby,eruby set shiftwidth=2 | |
autocmd FileType ruby,eruby set softtabstop=2 | |
autocmd FileType ruby,eruby let ruby_operators = 1 | |
autocmd FileType ruby,eruby let ruby_space_errors = 1 | |
autocmd FileType ruby,eruby let ruby_minlines = 400 | |
let g:rubycomplete_buffer_loading = 1 | |
let g:rubycomplete_classes_in_global = 1 | |
let g:rubycomplete_rails = 1 | |
let g:rubycomplete_use_bundler = 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 | |
" }}} | |
" Rainbow Parentheses {{{ | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
" }}} | |
" Syntastic {{{ | |
let g:syntastic_mode_map = { 'mode': 'active', | |
\ 'active_filetypes': ['ruby', 'php', 'python'], | |
\ 'passive_filetypes': ['cucumber', 'java', 'c'] } | |
" }}} | |
" Supertab {{{ | |
let g:SuperTabDefaultCompletionType = "context" | |
let g:SuperTabContextDefaultCompletionType = '<c-p>' | |
" }}} | |
" }}} |
This file contains 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
Bundle "nono/vim-handlebars" | |
Bundle "leshill/vim-json" | |
Bundle "tpope/vim-bundler" | |
Bundle "fholgado/minibufexpl.vim" | |
Bundle 'ervandew/supertab' | |
Bundle "kien/rainbow_parentheses.vim" | |
Bundle "delimitMate.vim" | |
Bundle 'tpope/vim-rake' | |
Bundle 'desert.vim' | |
Bundle 'jpo/vim-railscasts-theme' | |
Bundle 'xoria256.vim' | |
Bundle 'flazz/vim-colorschemes' | |
Bundle 'Gummybears' |
This file contains 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
let g:vimified_packages = ['general', 'fancy', 'os', 'coding', 'ruby', 'html', 'css', 'js', 'clojure', 'haskell', 'color'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment