1
0
Fork 0
mirror of synced 2024-11-17 06:25:35 -05:00

Updated normal maps for JavaScript, TypeScript

Now, TypeScript uses the JavaScript maps. Also, changed the maps for
following (to make it more standard):

* `<Ctrl+T>` => `console.log()`
* `<Ctrl+A>` => `alert()`
This commit is contained in:
Amir 2021-05-31 22:28:44 +02:00
parent a7a471a207
commit 2dccccb584

View file

@ -26,11 +26,11 @@ au FileType javascript call JavaScriptFold()
au FileType javascript setl fen
au FileType javascript setl nocindent
au FileType javascript imap <C-t> $log();<esc>hi
au FileType javascript imap <C-a> alert();<esc>hi
au FileType javascript,typescript imap <C-t> console.log();<esc>hi
au FileType javascript,typescript imap <C-a> alert();<esc>hi
au FileType javascript inoremap <buffer> $r return
au FileType javascript inoremap <buffer> $f // --- PH<esc>FP2xi
au FileType javascript,typescript inoremap <buffer> $r return
au FileType javascript,typescript inoremap <buffer> $f // --- PH<esc>FP2xi
function! JavaScriptFold()
setl foldmethod=syntax