ale fixers and "edit here, write here shortcuts"
This commit is contained in:
@@ -66,3 +66,9 @@ let g:airline#extensions#ale#enabled = 1
|
|||||||
let g:ale_sign_column_always = 1
|
let g:ale_sign_column_always = 1
|
||||||
let g:ale_sign_error = ''
|
let g:ale_sign_error = ''
|
||||||
let g:ale_sign_warning = ''
|
let g:ale_sign_warning = ''
|
||||||
|
|
||||||
|
let g:ale_fixers = {
|
||||||
|
\ 'javascript': [ 'eslint' ],
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ inoremap <silent><leader>w <Esc>:update<cr>a
|
|||||||
cmap w!! w !sudo tee % >/dev/null
|
cmap w!! w !sudo tee % >/dev/null
|
||||||
|
|
||||||
cmap eh e %:h/
|
cmap eh e %:h/
|
||||||
|
cmap wh w %:h/
|
||||||
|
|
||||||
"Remove search highlight when <Esc> is pressed
|
"Remove search highlight when <Esc> is pressed
|
||||||
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
|
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
|
||||||
|
|||||||
Reference in New Issue
Block a user