diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2021-07-15 00:51:52 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2021-07-15 00:51:52 +0200 |
commit | b8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8 (patch) | |
tree | e320dfd772c6688e6c7c10df036c64ae50c57e45 /files/vim/ftplugin/javascript/javascript.vim | |
parent | 821fe221f0a99cb808ea1f6485ba4fe2acf5b1b3 (diff) | |
download | configs-b8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8.tar.gz configs-b8b7563bd9cf1731cb5dc2e34ed88d5bc1e336c8.zip |
Morphed repo to stow structure. Added a bunch of configs in the process.
Diffstat (limited to 'files/vim/ftplugin/javascript/javascript.vim')
-rw-r--r-- | files/vim/ftplugin/javascript/javascript.vim | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/files/vim/ftplugin/javascript/javascript.vim b/files/vim/ftplugin/javascript/javascript.vim deleted file mode 100644 index 4935410..0000000 --- a/files/vim/ftplugin/javascript/javascript.vim +++ /dev/null @@ -1,38 +0,0 @@ -" ~/.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 <buffer> <leader>C :sp ~/.vim/ftplugin/javascript/javascript.vim<CR> - -nnoremap <buffer> gd :YcmCompleter GoTo<CR> -nnoremap <buffer> gr :YcmCompleter GoToReferences<CR> -nnoremap <buffer> gh :YcmCompleter GetType<CR> -nnoremap <buffer> gD :YcmCompleter GetDoc<CR> -nnoremap <buffer> gR :YcmCompleter RefactorRename<Space> -nnoremap <buffer> <leader>fi :YcmCompleter FixIt<CR> -nnoremap <buffer> <leader>e :YcmDiags<CR> - -let mapleader = "," - -inoremap <buffer> <leader>if if (<+++>) {<CR><++><CR>} <++><Esc>?<+++><CR>cf> -inoremap <buffer> <leader>else else {<CR><+++><CR>}<CR><++><Esc>?<+++><CR>cf> |