Created
July 28, 2014 10:51
-
-
Save dorentus/14e14e06369c8ca6aadc 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
set shell=/bin/sh " fix for fish | |
set nocompatible " be iMproved | |
filetype on " see: http://unix.stackexchange.com/questions/14497/ | |
filetype off " required! | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'StanAngeloff/php.vim' | |
Plugin 'html5.vim' | |
Plugin 'Match-Bracket-for-Objective-C' | |
Plugin 'beyondwords/vim-twig' | |
Plugin 'docteurklein/vim-symfony' | |
Plugin 'jiangmiao/simple-javascript-indenter' | |
Plugin 'tpope/vim-markdown' | |
Plugin 'vim-ruby/vim-ruby' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'rails.vim' | |
Plugin 'nginx.vim' | |
Plugin 'Rainbow-Parenthsis-Bundle' | |
Plugin 'Keithbsmiley/swift.vim' | |
Plugin 'fish.vim' | |
call vundle#end() | |
filetype plugin indent on " required! | |
set backspace=indent,eol,start | |
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
autocmd FileType ruby compiler ruby | |
set sw=2 | |
set ts=2 | |
set et | |
set showmatch | |
set autoindent | |
set smartindent | |
set ruler | |
set incsearch | |
set number | |
set vb | |
let &colorcolumn="80,".join(range(120,999),",") | |
highlight ColorColumn ctermbg=235 guibg=#2c2d27 | |
highlight TrailingWhitespace ctermbg=red guibg=red | |
autocmd ColorScheme * highlight TrailingWhitespace ctermbg=red guibg=red | |
:match TrailingWhitespace /\s\+$/ | |
fun! StringTailingWhitespace() | |
if &ft =~ 'markdown' | |
return | |
endif | |
%s/\s\+$//e | |
endfun | |
autocmd FileType ruby set ts=2|set sw=2|set expandtab | |
autocmd FileType javascript set ts=2|set sw=2|set expandtab | |
autocmd FileType coffee set ts=2|set sw=2|set expandtab | |
autocmd BufNewFile,BufReadPost *.coffee setl shiftwidth=2 expandtab | |
autocmd BufNewFile,BufReadPost *.erb setl shiftwidth=2 expandtab | |
autocmd BufWritePre * call StringTailingWhitespace() | |
autocmd FileType make setlocal noexpandtab | |
autocmd BufEnter *.twig setlocal noexpandtab | |
au BufEnter /tmp/crontab.* setl backupcopy=yes | |
au BufNewFile,BufRead Podfile,*.podspec set filetype=ruby | |
if has("gui_running") | |
colorscheme desert | |
set guifont=Inconsolata:h16 | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment