Skip to content

Instantly share code, notes, and snippets.

@jeffutter
Created June 12, 2014 02:40
Show Gist options
  • Save jeffutter/fd625d7c732b1fccd7e4 to your computer and use it in GitHub Desktop.
Save jeffutter/fd625d7c732b1fccd7e4 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My bundles here:
"
" original repos on GitHub
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Bundle 'tpope/vim-rails.git'
" vim-scripts repos
" Bundle 'L9'
" Bundle 'FuzzyFinder'
" non-GitHub repos
" Bundle 'git://git.wincent.com/command-t.git'
" Git repos on your local machine (i.e. when working on your own plugin)
" Bundle 'file:///Users/gmarik/path/to/plugin'
" ...
"
" Ruby
Bundle 'vim-ruby/vim-ruby'
Bundle 'tpope/vim-rails'
Bundle 'jgdavey/vim-turbux'
let g:turbux_command_rspec = 'zeus rspec'
Bundle 'tpope/vim-cucumber'
" Javascript
Bundle 'pangloss/vim-javascript'
Bundle 'kchmck/vim-coffee-script'
Bundle 'leshill/vim-json'
" Nimrod
Bundle "zah/nimrod.vim"
" Markup
Bundle 'othree/html5.vim'
Bundle 'plasticboy/vim-markdown'
let g:vim_markdown_folding_disabled=1
" Plugin 'instant-markdown.vim'
" Visual
Bundle 'nanotech/jellybeans.vim'
set background=dark
colorscheme jellybeans
if $TERM =~ "-256color"
set t_Co=256
endif
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-haml'
Bundle 'tpope/vim-dispatch'
Bundle 'jgdavey/tslime.vim'
Bundle 'christoomey/vim-tmux-runner'
Bundle 'scrooloose/nerdtree'
Bundle 'ervandew/supertab'
Bundle 'Valloric/MatchTagAlways'
Bundle 'godlygeek/tabular'
Bundle 'nathanaelkane/vim-indent-guides'
let g:indent_guides_enable_on_vim_startup = 1
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
let g:gist_clip_command = 'xclip -selection clipboard'
Bundle 'kien/ctrlp.vim'
" Bundle 'JazzCore/ctrlp-cmatcher'
" let g:ctrlp_match_func = {'match' : 'matcher#cmatch' }
Bundle 'matchit.zip'
Bundle 'kana/vim-textobj-user'
Bundle 'nelstrom/vim-textobj-rubyblock'
Bundle 'vimoutliner/vimoutliner'
Bundle 'terryma/vim-multiple-cursors'
Bundle 'dhruvasagar/vim-table-mode'
set backupdir=~/.vim/.backup
set directory=~/.vim/.tmp
set spellfile=~/.vim/spell/custom.en.utf-8.add
" Persistent Undo
if has('persistent_undo')
set undofile
set undodir=~/.vim/.undo
endif
" UI
set ruler " Ruler on
set number " Line numbers on
set nowrap " Line wrapping off
set laststatus=2 " Always show the statusline
" set cmdheight=2 " Make the command area two lines high
set encoding=utf-8
" set noshowmode " Don't show the mode since Powerline shows it
set title " Set the title of the window in the terminal to the file
if exists('+colorcolumn')
set colorcolumn=80 " Color the 80th column differently as a wrapping guide.
endif
" Disable tooltips for hovering keywords in Vim
if exists('+ballooneval')
" This doesn't seem to stop tooltips for Ruby files
set noballooneval
" 100 second delay seems to be the only way to disable the tooltips
set balloondelay=100000
endif
" Text Format
set tabstop=2
set backspace=indent,eol,start " Delete everything with backspace
set shiftwidth=2 " Tabs under smart indent
set cindent
set autoindent
set smarttab
set expandtab
" Visual
set showmatch " Show matching brackets.
set matchtime=2 " How many tenths of a second to blink
" Show invisible characters
" set list
" Reset the listchars
set listchars=""
" make tabs visible
set listchars=tab:▸▸
" show trailing spaces as dots
set listchars+=trail:.
" The character to show in the last column when wrap is off and the line
" continues beyond the right of the screen
set listchars+=extends:>
" The character to show in the last column when wrap is off and the line
" continues beyond the right of the screen
set listchars+=precedes:<
" Behavior
syntax enable
set backup " Turn on backups
set backupcopy=yes
set autoread " Automatically reload changes if detected
set wildmenu " Turn on WiLd menu
set hidden " Change buffer - without saving
set history=768 " Number of things to remember in history.
set cf " Enable error files & error jumping.
set clipboard+=unnamed " Yanks go on clipboard instead.
set autowrite " Writes on make/shell commands
set timeoutlen=450 " Time to wait for a command (after leader for example).
set nofoldenable " Disable folding entirely.
set foldlevelstart=99 " I really don't like folds.
set formatoptions=crql
set iskeyword+=\$,- " Add extra characters that are valid parts of variables
set nostartofline " Don't go to the start of the line after some commands
set scrolloff=3 " Keep three lines below the last line when scrolling
set gdefault " this makes search/replace global by default
set switchbuf=useopen " Switch to an existing buffer if one exists
" vim options
" filetype plugin indent on
" syntax on
" cabbr te tabedit
" colorscheme solarized
" set nocompatible
" set showtabline=2
" set nofoldenable
" set colorcolumn=+1 " red line and over is error
" set textwidth=80
" set hlsearch
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install (update) bundles
" :BundleSearch(!) foo - search (or refresh cache first) for foo
" :BundleClean(!) - confirm (or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle commands are not allowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment