Skip to content

Instantly share code, notes, and snippets.

@ddneat
Last active April 13, 2017 12:56
Show Gist options
  • Save ddneat/c2976958f7040fb1f4f54aa6a782f427 to your computer and use it in GitHub Desktop.
Save ddneat/c2976958f7040fb1f4f54aa6a782f427 to your computer and use it in GitHub Desktop.
.vimrc
" Options
set shiftwidth=2
set softtabstop=2
set tabstop=2
set expandtab
set number
set ignorecase
set hlsearch
set noeb vb t_vb=
set wildmenu
set laststatus=2
" log current word in next line
let @c='yiwoconsole.log('''', );bblplllp'
" single quote current word
let @s='bi''wwi'''
" Habit breaking
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" Turn on syntax highlighting
syntax on
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
call plug#begin('~/.vim/plugged')
Plug 'elzr/vim-json'
Plug 'pangloss/vim-javascript'
Plug 'vim-scripts/JavaScript-Indent'
Plug 'mxw/vim-jsx'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'rakr/vim-one'
Plug 'scrooloose/nerdtree'
Plug 'benekastah/neomake'
" Initialize plugin system
call plug#end()
colorscheme one
set termguicolors
set background=dark
let g:airline_theme = 'one'
let g:jsx_ext_required = 0
" Neomake
autocmd! BufWritePost * Neomake
let g:neomake_javascript_enabled_makers = ['eslint_d']
let g:neomake_jsx_enabled_makers = ['eslint_d']
let g:neomake_error_sign = {'text': 'x', 'texthl': 'NeomakeErrorSign'}
let g:neomake_warning_sign = {'text': 'x', 'texthl': 'NeomakeWarningSign'}
let g:neomake_message_sign = {'text': 'x', 'texthl': 'NeomakeMessageSign' }
let g:neomake_info_sign = {'text': 'ℹ', 'texthl': 'NeomakeInfoSign'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment