func! Eatchar(pat) let c = nr2char(getchar(0)) return (c =~ a:pat) ? '' : c endfunc iabbr koko ----- kokomade=Eatchar('\s') iabbr tc taskchute=Eatchar('\s') iabbr forr 'for(int i=0; i".repeat('h',10) iabbr lnk /Users/takets/Dropbox/files/changelog/changelogmemo : =Eatchar('\s') cabbr oie Octo issue edit augroup my_vimrc autocmd FileType sql iabbrev select SELECT autocmd FileType sql iabbrev from FROM autocmd FileType sql iabbrev where WHERE autocmd FileType sql iabbrev order ORDER autocmd FileType sql iabbrev by BY autocmd FileType sql iabbrev and AND autocmd FileType sql iabbrev or OR autocmd FileType sql iabbrev inner INNER autocmd FileType sql iabbrev join JOIN autocmd FileType sql iabbrev on ON autocmd FileType sql iabbrev in IN autocmd FileType sql iabbrev when WHEN autocmd FileType sql iabbrev case CASE autocmd FileType sql iabbrev else ELSE autocmd FileType sql iabbrev create CREATE autocmd FileType sql iabbrev table TABLE autocmd FileType sql iabbrev update UPDATE autocmd FileType sql iabbrev insert INSERT autocmd FileType sql iabbrev delete DELETE autocmd FileType changelog iabbrev cl: CL: =Eatchar('\s') autocmd FileType changelog iabbrev clo: CLO: =Eatchar('\s') autocmd FileType vue,javascript iabbrev dg debugger;=Eatchar('\s') autocmd FileType vue,javascript iabbrev cn console.log('Canary');=Eatchar('\s') augroup END