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.
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.
Re:Learn Vim (the Smart Way): a book to learn the good parts...
by Lio on Thursday August 27, 2020 @02:29AM
(#24290675)
The problem with your jk solution is that it doesn’t work in other Vi-like interfaces such as those provided by readline or shells.
Also ctrl-h is backspace so mapping caps to ctrl gives you a convenient escape and backspace shortcut.
(It also gives you a heap more terminal shortcuts but that’s another story).
IMHO chording the 'j' and 'k' keys simultaneously [1] is a severely underutilized solution for escape.
Try it. You'll love it.
If you're going to rebind capslock to something — and this is particularly true if you're on macOS — rebind it to backspace. Capslock escape isn't useful outside of Vim. Backspace is useful everywhere, including inside Vim.
[1] https://github.com/kana/vim-arpeggio