4 ms·
Fair enough. Although I'm curious what text editors would support non-trivial text replacement like \delta_1. For example, Vim abbreviations apply on word bound
by doomrobo 9y ago
Fair enough. Although I'm curious what text editors would support non-trivial text replacement like \delta_1. For example, Vim abbreviations apply on word boundaries (things followed by space or punctuation). So to make \delta_n work you'd have to have a separate abbreviation for each digit n. Then do this for every single thing that can be subscripted.
To be fair, though, this works fine and seems pretty usable
:ab _1 <BS>₁
This does a backspace before the replacement, so it transforms `foo _1.` into `foo₁.`
- ygra 9y agoThe subscript replacements are not really needed, I was more talking about turning \delta into δ. Word itself doesn't replace the subscripts and I found the sub-/superscript characters more a nuisance to work with (as they bind stronger than _/^ I think). But having characters that exist in Unicode appear as themselves instead of things like \delta or, worse, \mathbb N, imho really helps legibility already.