Skip to content

Instantly share code, notes, and snippets.

@dorentus
Created July 28, 2014 10:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorentus/14e14e06369c8ca6aadc to your computer and use it in GitHub Desktop.
Save dorentus/14e14e06369c8ca6aadc to your computer and use it in GitHub Desktop.
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