Skip to content

Instantly share code, notes, and snippets.

@huawww
Created April 11, 2017 20:29
Show Gist options
  • Save huawww/8fbce9e062d108f4b0d7afa05cb4b94e to your computer and use it in GitHub Desktop.
Save huawww/8fbce9e062d108f4b0d7afa05cb4b94e to your computer and use it in GitHub Desktop.
" https://github.com/junegunn/vim-plug
call plug#begin('~/.local/share/nvim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'editorconfig/editorconfig-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug '907th/vim-auto-save'
Plug 'w0rp/ale'
Plug 'ervandew/supertab'
Plug 'mxw/vim-jsx'
Plug 'jelera/vim-javascript-syntax'
Plug 'airblade/vim-gitgutter'
call plug#end()
"=== ale linting ==="
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0
"=== Whitespace indicator http://youtu.be/aHm36-na4-4 ==="
exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
set list
set number
syntax on
set syntax=whitespace
set history=500
set encoding=utf8
let $LANG="en"
set langmenu=en
set ffs=unix
" http://stackoverflow.com/questions/82726/convert-dos-line-endings-to-linux-line-endings-in-vim#82743
set ff=unix
set nobackup
set nowb
set noswapfile
" Enable filetype plugins
filetype plugin on
filetype indent on
set expandtab
set shiftwidth=2
set softtabstop=2
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
let g:jsx_ext_required = 0
set cursorline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment