Skip to content

Instantly share code, notes, and snippets.

@jbaxleyiii
Created July 20, 2017 19:32
Show Gist options
  • Save jbaxleyiii/2acf3875ec17c67f65520804aedc501c to your computer and use it in GitHub Desktop.
Save jbaxleyiii/2acf3875ec17c67f65520804aedc501c to your computer and use it in GitHub Desktop.
set nocompatible
syntax enable
colorscheme norma
let g:airline_theme='bubblegum'
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" install Vundle bundles
if filereadable(expand("~/.vimrc.bundles"))
source ~/.vimrc.bundles
endif
call vundle#end()
filetype plugin indent on
set fileformat=unix
set autoindent
set autoread
set backspace=indent,eol,start
set clipboard=unnamed
set directory-=.
set encoding=utf8
set expandtab
set ignorecase
set incsearch
set laststatus=2
set nolist
set number
set ruler
set scrolloff=3
set shiftwidth=2
set showcmd
set smartcase
set softtabstop=2
set tabstop=8
set wildignore=log/**,node_modules/**,target/**,tmp/**,*.rbc
set wildmenu
set wildmode=longest,list,full
set ve=onemore
set term=screen-256color
set t_ut=
set mouse=a
set noshowmatch
set t_ZH=x27[3m
set t_ZR=x27[23m
set pastetoggle=<F9>
let mapleader = ','
inoremap jj <ESC>
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-l>l
noremap <leader>l :Align
noremap <leader>d :NERDTreeToggle<CR>
noremap <leader>f :NERDTreeFind<CR>
noremap <leader><space> :call whitespace#strip_trailing()<CR>
noremap <leader>g :GitGutterToggle<CR>
noremap gcc :vsc Edit.CommentSelection<CR>
noremap gc :vsc Edit.CommentSelection<CR>
autocmd FileType reason map <buffer> <D-M> :ReasonPrettyPrint<Cr>
let s:python_version=has("python3") ? 3 : 2
let g:ctrlp_cmd='CtrlPBuffer'
let g:ctrlp_cache_dir=$HOME . '/.vim/.cache/ctrlp'
let g:NERDSpaceDelims=1
let g:gitgutter_enabled=1
let g:indent_guides_auto_colors=0
let g:jsx_ext_required=0
let g:javascript_plugin_flow=0
let g:flow#enable = 0
let g:jsx_pragma_required=0
let g:typescript_indent_disabled=1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = 1
set completeopt+=menu,longest,menuone,preview
set shortmess+=c
set completeopt+=noinsert,noselect
let g:mucomplete#enable_auto_at_startup=1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 0
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:syntastic_cs_checkers = ['syntax', 'semantic', 'issues']
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']
let g:syntastic_ocaml_checkers = ['merlin']
let g:syntastic_reason_checkers = ['merlin']
let g:syntastic_javascript_checkers = ['flow', 'eslint']
autocmd FileType javascript set formatprg=prettier\ --stdin\ --trailing-comma=es5\ --parser=flow
autocmd BufWritePre *.js exe "normal! gggqG\<C-o>\<C-o>"
autocmd FileType typescript set formatprg=prettier\ --stdin\ --trailing-comma=es5\ --single-quote\ --parser=typescript
autocmd BufWritePre *.ts exe "normal! gggqG\<C-o>\<C-o>"
autocmd BufNewFile,BufRead *.ts set filetype=typescript
autocmd BufNewFile,BufRead *.tsx set filetype=typescript
autocmd BufNewFile,BufRead *.re set filetype=reason
let g:ale_sign_column_always = 1
let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
set noswapfile
set noerrorbells
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
let NERDChristmasTree = 1
" let g:airline_left_sep=' '
" let g:airline_right_sep=' '
let g:airline_powerline_fonts=0
let g:airline_symbols_ascii = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment