tds I would like to see it replaced with the current time stamp in Markdown files, but eg. NOT while editing C source code.
The following mostly works (stripped for brevity) except that the the abbreviation
tds is available in every buffer (mode) not just a markdown mode buffer.
augroup TXT | au! autocmd BufRead,BufNewFile *.asciidoc,*.md,README,TODO,CHANGELOG,NOTES,ABOUT \ setlocal autoindent expandtab tabstop=8 softtabstop=2 shiftwidth=2 | \ :iab <buffer> <expr> tds strftime("%F %b %T") augroup END
How can I define an abbreviation to be available in certain buffer modes only?