diff options
Diffstat (limited to 'files/vim/ftplugin/javascript')
-rw-r--r-- | files/vim/ftplugin/javascript/javascript.vim | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/files/vim/ftplugin/javascript/javascript.vim b/files/vim/ftplugin/javascript/javascript.vim index 2040643..87af95e 100644 --- a/files/vim/ftplugin/javascript/javascript.vim +++ b/files/vim/ftplugin/javascript/javascript.vim @@ -4,7 +4,10 @@ " Syntastic linters: jslint " JSLint arguments -let g:syntastic_javascript_jslint_args = "--browser --indent" +" let g:syntastic_javascript_jslint_args = "--browser --indent" + +" ALE +let b:ale_linters = ['eslint'] " Tabs are expanded to 4 spaces setlocal tabstop=4 shiftwidth=4 expandtab @@ -18,12 +21,13 @@ setlocal textwidth=110 " Mappings nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/javascript/javascript.vim<CR> -nnoremap <buffer> <leader>gt :YcmCompleter GoTo<CR> -nnoremap <buffer> <leader>gr :YcmCompleter GoToReferences<CR> -nnoremap <buffer> <leader>fi :YcmCompleter FixIt<CR> -nnoremap <buffer> <leader>r :YcmCompleter RefactorRename<Space> -nnoremap <buffer> <leader>e :YcmDiags<CR> -nnoremap <buffer> <leader>E :Errors<CR> +"nnoremap <buffer> <leader>gt :YcmCompleter GoTo<CR> +"nnoremap <buffer> <leader>gr :YcmCompleter GoToReferences<CR> +"nnoremap <buffer> <leader>fi :YcmCompleter FixIt<CR> +"nnoremap <buffer> <leader>r :YcmCompleter RefactorRename<Space> +"nnoremap <buffer> <leader>e :YcmDiags<CR> +"nnoremap <buffer> <leader>E :Errors<CR> inoremap <buffer> <leader>if if (<+++>) {<CR><++><CR>} <++><Esc>?<+++><CR>cf> inoremap <buffer> <leader>else else {<CR><+++><CR>}<CR><++><Esc>?<+++><CR>cf> + |