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:
parent
a7a471a207
commit
2dccccb584
1 changed files with 4 additions and 4 deletions
|
@ -26,11 +26,11 @@ au FileType javascript call JavaScriptFold()
|
||||||
au FileType javascript setl fen
|
au FileType javascript setl fen
|
||||||
au FileType javascript setl nocindent
|
au FileType javascript setl nocindent
|
||||||
|
|
||||||
au FileType javascript imap <C-t> $log();<esc>hi
|
au FileType javascript,typescript imap <C-t> console.log();<esc>hi
|
||||||
au FileType javascript imap <C-a> alert();<esc>hi
|
au FileType javascript,typescript imap <C-a> alert();<esc>hi
|
||||||
|
|
||||||
au FileType javascript inoremap <buffer> $r return
|
au FileType javascript,typescript inoremap <buffer> $r return
|
||||||
au FileType javascript inoremap <buffer> $f // --- PH<esc>FP2xi
|
au FileType javascript,typescript inoremap <buffer> $f // --- PH<esc>FP2xi
|
||||||
|
|
||||||
function! JavaScriptFold()
|
function! JavaScriptFold()
|
||||||
setl foldmethod=syntax
|
setl foldmethod=syntax
|
||||||
|
|
Loading…
Reference in a new issue