dotfiles/vim/after/ftplugin/javascript.vim

6 lines
265 B
VimL

iabbrev clog console.log("<c-r>=Eatchar('\s')<cr>
iabbrev cdeb console.debug("<c-r>=Eatchar('\s')<cr>
iabbrev cerr console.error("<c-r>=Eatchar('\s')<cr>
iabbrev cwar console.warn("<c-r>=Eatchar('\s')<cr>
iabbrev ()! () => {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr>