Created
April 20, 2016 17:18
-
-
Save nabrahamson/2d4c7e25ecd111545890377149f4d02e 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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
" Set up python | |
let g:python_host_prog='/usr/bin/python' | |
call plug#begin() | |
" let Vundle manage Vundle | |
" required! | |
Plug 'gmarik/Vundle.vim' | |
" Plugins | |
" vim-scripts | |
Plug 'Wombat' | |
Plug 'wombat256.vim' | |
Plug 'genutils' | |
" github | |
Plug 'groenewege/vim-less' | |
Plug 'plasticboy/vim-markdown' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'tpope/vim-git' | |
Plug 'bling/vim-airline' | |
Plug 'scrooloose/nerdtree' | |
Plug 'ervandew/supertab' | |
Plug 'Lokaltog/vim-easymotion' | |
Plug 'embear/vim-localvimrc' | |
Plug 'ntpeters/vim-better-whitespace' | |
Plug 'maksimr/vim-jsbeautify' | |
Plug 'scrooloose/syntastic' | |
Plug 'editorconfig/editorconfig-vim' | |
call plug#end() | |
set backupskip=/tmp/*,/private/tmp/*" | |
try | |
colorscheme Tomorrow-Night-Eighties | |
catch | |
endtry | |
set background=dark | |
filetype plugin on | |
syntax on | |
" Autosettings | |
augroup mkd " MarkDown | |
autocmd FileType mkd setlocal ai spell nofoldenable colorcolumn=80 | |
augroup END | |
augroup commit | |
autocmd FileType gitcommit,cvs setlocal spell textwidth=72 colorcolumn=73 | |
augroup END | |
" Enable the mouse | |
if has('mouse') | |
set mouse=a | |
endif | |
" Enable the status bar | |
set laststatus=2 | |
if $POWERLINE_FONT | |
let g:airline_powerline_fonts = 1 | |
endif | |
set hidden | |
set hlsearch | |
set number | |
set tabstop=2 | |
set wrap | |
set autoindent | |
set backspace=indent,eol,start | |
" GUI | |
if has("gui_running") | |
colorscheme wombat | |
if has("gui_win32") || has("gui_win32s") | |
set guifont=Ubuntu_Mono_derivative_Powerlin:h18 | |
let g:airline_powerline_fonts = 1 | |
set encoding=utf-8 | |
set fileencodings=ucs-bom,utf-8 | |
endif | |
endif | |
" Mappings | |
" Tab nav | |
map ;] :tabnext<cr> | |
map ;[ :tabprevious<cr> | |
" Work | |
set expandtab | |
set shiftwidth=2 | |
let g:ctrlp_working_path_mode = 'ra' | |
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-fles -oc --exclude-standard'] | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|CVS$\|\.svn$\|target$\|node_modules\|bower_components', | |
\ 'file': '\.class$\|\.so$', | |
\ } | |
let g:ctrlp_extensions = ['dir', 'mixed'] | |
let g:vundle_default_git_proto = 'git' | |
if has('vim_starting') | |
if &compatible | |
set nocompatible | |
endif | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundleFetch 'https://github.com/easymotion/vim-easymotion' | |
NeoBundleFetch 'https://github.com/vim-scripts/JavaScript-Indent' | |
NeoBundleFetch 'https://github.com/jelera/vim-javascript-syntax' | |
NeoBundleFetch 'https://github.com/marijnh/tern_for_vim' | |
NeoBundleFetch 'https://github.com/tpope/vim-fugitive' | |
NeoBundleFetch 'https://github.com/bling/vim-airline' | |
NeoBundleFetch 'https://github.com/flazz/vim-colorschemes' | |
NeoBundleFetch 'https://github.com/terryma/vim-multiple-cursors' | |
NeoBundleFetch 'https://github.com/othree/html5.vim' | |
call neobundle#end() | |
filetype plugin indent on | |
NeoBundleCheck | |
let g:used_javascript_libs = 'jquery,underscore,angularjs,jasmine' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:syntastic_javascript_checkers = ['eslint'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment