Created
December 7, 2015 20:21
-
-
Save cdl/2d1e6f27824b9d90750d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""" | |
" Files, backups, undo, etc. | |
""""""""""""""""""""""""""""" | |
set nocompatible | |
set encoding=utf8 | |
set ffs=unix,dos,mac | |
set nobackup | |
set nowb | |
set noswapfile | |
""""""""""""""""""""""""""""" | |
" Text, tab, indents! | |
""""""""""""""""""""""""""""" | |
set backspace=2 | |
set expandtab " spaces, not tabs! | |
set smarttab | |
" 2-space tabs! | |
set shiftwidth=2 | |
set tabstop=2 | |
" Line break on 500 chars | |
set lbr | |
set tw=500 | |
set ai " Auto indent | |
set si " Smart indent | |
set wrap "Wrap lines | |
""""""""""""""""""""""""""""" | |
" Vundle! | |
""""""""""""""""""""""""""""" | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle | |
Plugin 'VundleVim/Vundle.vim' | |
" other plugins | |
Plugin 'w0ng/vim-hybrid' | |
Plugin 'mustache/vim-mustache-handlebars' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'bling/vim-airline' | |
Plugin 'Shutnik/jshint2.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'editorconfig/editorconfig-vim' | |
" finish up | |
call vundle#end() | |
filetype plugin indent on | |
"""""""""""""""""""""""""" | |
" Colors and Fonts | |
"""""""""""""""""""""""""" | |
syntax enable | |
set background=dark | |
colorscheme hybrid | |
set cursorline | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Plugins | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
""""""""""""""""""""""""""" | |
" NERDTree | |
""""""""""""""""""""""""""" | |
" map Ctrl-n to NERDTree | |
map <C-n> :NERDTreeToggle<CR> | |
" close Vim if the only open window is NERDTree | |
" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | |
""""""""""""""""""""""""""" | |
" ctrlp options | |
""""""""""""""""""""""""""" | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|bower_components\|dist\|tmp\|lib' | |
""""""""""""""""""""""""""" | |
" airline! | |
""""""""""""""""""""""""""" | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
""""""""""""""""""""""""""" | |
" jshint | |
""""""""""""""""""""""""""" | |
let jshint2_save = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment