From f6e9c9e8b53e6912a3c157ae84ca260649406b44 Mon Sep 17 00:00:00 2001 From: Vasili Svirydau Date: Thu, 23 Nov 2017 12:15:00 -0800 Subject: [PATCH] ale fixers and "edit here, write here shortcuts" --- config/01-plugins.vim | 6 ++++++ config/03-mappings.vim | 1 + 2 files changed, 7 insertions(+) diff --git a/config/01-plugins.vim b/config/01-plugins.vim index b97a6ae..a0f2e0b 100644 --- a/config/01-plugins.vim +++ b/config/01-plugins.vim @@ -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 diff --git a/config/03-mappings.vim b/config/03-mappings.vim index 4c338b6..918e0d1 100644 --- a/config/03-mappings.vim +++ b/config/03-mappings.vim @@ -5,6 +5,7 @@ inoremap w :updatea cmap w!! w !sudo tee % >/dev/null cmap eh e %:h/ +cmap wh w %:h/ "Remove search highlight when is pressed nnoremap :nohlsearch