" ~/.vim/ftplugin/javascript/javascript.vim " JavaScript-specific vim configuration " " Syntastic linters: jslint " JSLint arguments " 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 " Show existing tabs (they can be deleted with :retab) setlocal list " Column marker: 110 characters call matchadd('ColorColumn', '\%111v', 100) setlocal textwidth=110 " Mappings nnoremap C :sp ~/.vim/ftplugin/javascript/javascript.vim "nnoremap gt :YcmCompleter GoTo "nnoremap gr :YcmCompleter GoToReferences "nnoremap fi :YcmCompleter FixIt "nnoremap r :YcmCompleter RefactorRename "nnoremap e :YcmDiags "nnoremap E :Errors inoremap if if (<+++>) {<++>} <++>?<+++>cf> inoremap else else {<+++>}<++>?<+++>cf>