Skip to content

Instantly share code, notes, and snippets.

@cdl
Created May 17, 2014 08:36
Show Gist options
  • Save cdl/22cff7768dc5edb3b6f6 to your computer and use it in GitHub Desktop.
Save cdl/22cff7768dc5edb3b6f6 to your computer and use it in GitHub Desktop.
" cdl/dotfiles --- vimrc
" Took a bunch of this from imkmf/dotfiles (thanks, @imkmf!)
" Set up Pathogen + bundles
runtime bundle/vim-pathogen/autoload/pathogen.vim
" Bundle: tpope/vim-pathogen
" Bundle: bling/vim-airline
" Bundle: tpope/vim-sensible
" Bundle: jtratner/vim-flavored-markdown
" Bundle: cakebaker/scss-syntax.vim
call pathogen#infect()
" Set patched font
set guifont=Ubuntu\ Mono\ derivative\ Powerline\ 15
" Enable syntax highlighting
syntax on
" Fix stupidness with backspaces
set backspace=indent,eol,start
" Reload .vimrc on save (good for editing)
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END
" Get rid of bells
set visualbell
" Tell vim which characters to show for expanded TABs,
" trailing whitespace, and end-of-lines.
set listchars=tab:>-,trail:·
" Fast scrolling
set ttyfast
" Space it out a little more (easier to read)
set lsp=0
" Line numbers!
set ruler
""""""""""""""""""""
" vim-airline conf "
""""""""""""""""""""
" Set theme
let g:airline_theme = "powerlineish"
let g:airline_enable_branch = 1
let g:airline_powerline_fonts = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment