Earlier quoted context omitted.
Follow-up tip: also on a Mac, go to System Preferences → Keyboard and check “Show keyboard and emoji viewers in menu bar”. Then, hit the icon just added to the menu bar and select “Show Keyboard Viewer”. With it open, hold down Option, Option+Shift, etc, to live-preview what will be typed. For symbols not there, hit Control+Command+Space to open the emoji/unicode typer. Hit the icon in the upper right to switch to a…
Personally I’m a big fan of the compose key for such matters. (Both OS X and Linux.) The mnemonics I find easier to remember. • Compose . . → … • Compose " → “ and ” • Compose ' → ‘ and ’ • Compose / = → ≠ • Compose + - → ± • (couldn't figure out ≈) • Compose • Compose > = → ≥ • Compose o o → ° • (no compose for π)
I’ve customised my Compose key quite a bit.
I added things like:
- Greek characters from Vim’s digraphs, so p star = π, l star = λ, &c. (Looks like WinCompose’s defaults now actually include asterisk-first ones, star p → π, so I might drop my additions.)
- Emoji, :), :D, XD, :/, :S, &c.
- Improved curly quotes, whereby I super-conveniently type curly quotes all the time: ;; → ‘, :: → “, '' → ’, "" → ”. (Look at them on the keyboard to figure out the reasoning. ∷ is available as 2:.)
I contemplated, but didn’t add, Vim’s box drawing digraphs; there are a few collisions, and I only ever use box drawing characters in Vim, so I’ll just use Ctrl+K there.
http://temp.chrismorgan.info/.XCompose is my current .XCompose. I’m using Windows these days, so that’s with WinCompose.