ale fixers and "edit here, write here shortcuts"

This commit is contained in:
Vasili Svirydau
2017-11-23 12:15:00 -08:00
parent 3f39ff71f0
commit f6e9c9e8b5
2 changed files with 7 additions and 0 deletions

View File

@@ -66,3 +66,9 @@ let g:airline#extensions#ale#enabled = 1
let g:ale_sign_column_always = 1
let g:ale_sign_error = ''
let g:ale_sign_warning = ''
let g:ale_fixers = {
\ 'javascript': [ 'eslint' ],
\ }
let g:ale_fix_on_save = 1

View File

@@ -5,6 +5,7 @@ inoremap <silent><leader>w <Esc>:update<cr>a
cmap w!! w !sudo tee % >/dev/null
cmap eh e %:h/
cmap wh w %:h/
"Remove search highlight when <Esc> is pressed
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>