💾 Archived View for bbs.geminispace.org › u › satch › 13179 captured on 2024-05-26 at 17:05:57. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
Re: "Q: Abbreviations, but only at beginning of line"
how's this:
:iabbrev <expr> === getline('.')[0:2] == '===' ? '/*====================*/' : '==='
2023-12-29 · 5 months ago
Q: Abbreviations, but only at beginning of line — I just wasted an hour searching for a way to create an iabbrev that triggers only at beggining of line. Say I want to convert a '===' to a '/*====================*/, but if and only if the === was typed at the start of its own line. Is that even possible?