Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
" Setting up Vundle
let vundleUpdate=0
" Check to see if Vundle is even installed...
let vundleReadme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundleReadme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
let vundleUpdate=1
endif
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
" Environment
Bundle 'bling/vim-bufferline'
Bundle 'bling/vim-airline'
Bundle 'bronson/vim-trailing-whitespace'
" Shortcuts
Bundle 'tpope/vim-surround'
" Language Specific
Bundle 'rodjek/vim-puppet'
Bundle 'Syntastic'
" Navigation
Bundle 'scrooloose/nerdtree'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/ctrlp.vim'
Bundle 'rizzatti/dash.vim'
" Snippets
Bundle 'sirver/ultisnips'
Bundle 'honza/vim-snippets'
" Color Schemes
Bundle 'altercation/vim-colors-solarized'
" Update Plugins if Requested
if vundleUpdate == 1
echo "Installing VIM Plugins with Vundle..."
echo ""
:BundleInstall
endif
" END Setting up Vundle
" Always have statusline show up all the time
set laststatus=2
" Theme Settings
syntax enable
if $ITERM_COLOR == "light"
set background=light
else
set background=dark
endif
colorscheme solarized
let g:airline_powerline_fonts = 1
" Show line numbers
set number
" Share clipboard with OSX and MacVim
set clipboard=unnamed
" Never enter 'ex' mode
nnoremap Q <nop>
" Default Tabstops
set tabstop=2 softtabstop=2 shiftwidth=2
set smarttab autoindent expandtab
" Set 4 spaces for Python
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4
"" Plugin Configuration
" NERDTree Settings
map <F2> :NERDTreeToggle<CR>
" UltiSnip Settings
let g:UltiSnipsExpandTrigger="<tab>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.