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()`
pull/639/head
Amir 2 years ago
parent a7a471a207
commit 2dccccb584
  1. 8
      vimrcs/filetypes.vim

@ -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

Loading…
Cancel
Save