Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Created July 10, 2014 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbernar1/7bc106968fde46050889 to your computer and use it in GitHub Desktop.
Save dbernar1/7bc106968fde46050889 to your computer and use it in GitHub Desktop.
.vimrc
" a particular style of auto-indentation
set si
" I like these colors
syntax enable
set background=dark
colorscheme fruit "https://github.com/flazz/vim-colorschemes/blob/master/colors/fruit.vim
" create .swp temp files in my home dir instead of in the current directory
set directory=~/.vimtmp
" highlight searched keywords
set hlsearch
" open file focused on same line you had closed it on last time
au BufWinLeave *.php mkview
au BufWinEnter *.php silent loadview
" remember command history across vim sessions
set viminfo='10,\"100,:20,%,n~/.viminfo
" turn on pathogen
execute pathogen#infect()
" check js syntax with jshint
let g:syntastic_javascript_checkers = ['jshint']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment