" ~/.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 let mapleader = " " nnoremap C :sp ~/.vim/ftplugin/javascript/javascript.vim nnoremap gd :YcmCompleter GoTo nnoremap gr :YcmCompleter GoToReferences nnoremap gh :YcmCompleter GetType nnoremap gD :YcmCompleter GetDoc nnoremap gR :YcmCompleter RefactorRename nnoremap fi :YcmCompleter FixIt nnoremap e :YcmDiags let mapleader = "," inoremap if if (<+++>) {<++>} <++>?<+++>cf> inoremap else else {<+++>}<++>?<+++>cf>