News for hackers. Stuff that matters.
Re:Learn Vim (the Smart Way): a book to learn the good parts... by pessimizer on Wednesday August 26, 2020 @11:09PM (#24289781)
> If you're going to rebind capslock to something — and this is particularly true if you're on macOS — rebind it to backspace.

No, rebind it to Compose. Makes life a lot easier.

https://en.wikipedia.org/wiki/Compose_key

Re:Learn Vim (the Smart Way): a book to learn the good parts... by atweiden on Wednesday August 26, 2020 @11:30PM (#24289871)
That's interesting. I'm a bit spoiled by primarily using Vim to write code and prosé in American English. Vim's digraph feature (Ctrl-K by default) has handled unicode char input nicely enough for me, but I wonder if the compose key could be of use when writing text in Japanese for example.
Re:Learn Vim (the Smart Way): a book to learn the good parts... by pessimizer on Thursday August 27, 2020 @12:20AM (#24290089)
I actually meant to do it systemwide, for when you're writing or googling things not in English, or when you want to write a fancy ⅝. The day I have to start putting diacritics into computer code is the day I quit programming:)

I think it's no good for Japanese, but I know very little about Japanese input. Romanji is still Japanese, right?

Re:Learn Vim (the Smart Way): a book to learn the good parts... by owl57 on Thursday August 27, 2020 @02:07AM (#24290589)
Now that's an idea. Haskellers routinely use x' as a variable name, but ẋ and x̃ are also valid ones!
Re:Learn Vim (the Smart Way): a book to learn the good parts... by fictorial on Wednesday August 26, 2020 @11:31PM (#24289876)
I use option-e e to insert é, option-n n to insert ñ, etc. I noticed this while pressing option in the Keyboard Viewer.