News for hackers. Stuff that matters.
Re:LazyVim by distcs on Monday July 17, 2023 @05:09AM (#36755768)
Ctrl+C and Esc do not behave the same in all contexts. The correct replacement for Esc is Ctrl+[.

What if you need to type `jj`? Not uncommon to do so while writing math or physics papers. a_{jj}

Re:LazyVim by sidibe on Monday July 17, 2023 @06:26AM (#36756244)
Spacemacs defaults to fd, I don't think I ever accidentally left insert mode with that.

Happy vscode user these days. If I find myself fiddling with an editor it's a huge red flag to me that I hate what I'm working on.

Re:LazyVim by turboponyy on Monday July 17, 2023 @06:57AM (#36756448)
fd sounds much worse as now you can't jump to d characters.
Re:LazyVim by gsinclair on Monday July 17, 2023 @07:26AM (#36756679)
False. The fd mapping would only apply in insert mode. Jumping to d only occurs in normal mode.
Re:LazyVim by turboponyy on Monday July 17, 2023 @08:03AM (#36757147)
Oops - you're correct, of course.
Re:LazyVim by distcs on Monday July 17, 2023 @08:17AM (#36757316)
I still don't understand how these mappings are good.

What if you need to type "fd" in insert mode? Like fd0, fd1, etc. Isn't that going to be a pain? Do you never have to type "fd"?

Re:LazyVim by wzdd on Monday July 17, 2023 @08:44AM (#36757541)
There is a timeout on multi-key mappings, so if you need to type fd0 you type f, wait 'timeoutlen' (1 second by default apparently), then type d0.

That's a pain, but it doesn't come up often. In return you get quite a lot of functionality (due to vim being modal) without having to move your fingers beyond the letter keys, which is quite relaxing.

Re:LazyVim by eptcyka on Tuesday July 18, 2023 @11:31AM (#36774120)
Having fiddled with file descriptors, I could never live with such a remap. To each their own :)
Re:LazyVim by krab on Monday July 17, 2023 @08:30AM (#36757430)
Not using this personally but there can be a timeout, or you do jk<backspace>j. Fine if the letter sequence is rare enough.
Re:LazyVim by themadturk on Monday July 17, 2023 @11:08PM (#36767337)
Type "jj" a little slower if you don't want it to be <esc>, it works fine.