-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

Comment by ๐Ÿ satch


Re: "Q: Abbreviations, but only at beginning of line"

In: s/vim


how's this:

:iabbrev <expr> === getline('.')[0:2] == '===' ? '/*====================*/' : '==='

๐Ÿ satch

2023-12-29 ยท 5 months ago


Original Post


๐ŸŒ’ s/vim

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?

๐Ÿ’ฌ stack [mod] ยท 1 comment ยท 2023-12-28 ยท 5 months ago

-- Response ended

-- Page fetched on Sun Jun 2 13:24:24 2024