10 ms·
Was that expressly written to parody Vim? If so, this line is particularly spot on: > 'left' actually means right
by divbzero 3y ago
Was that expressly written to parody Vim? If so, this line is particularly spot on:
> 'left' actually means right
- raverbashing 3y agoEmacs more likely since the bug is 23 yrs old and the gatekeeping But yeah I agree with the sentiment of parent OP
- p-e-w 3y ago> Was that expressly written to parody Vim? Yes. The advice to turn the yoke upside down is supposed to reference remapping Caps Lock to Escape, without which Vim destroys your pinky on a standard keyboard. But it's the choice of professionals, so what can we do?
- _7tgr 3y agoI'm playing into the joke here, but on most terminals, alt + <key> will actually be sent to the program as <esc> + key. You can use this to avoid pressing escape in Neovim.
- xeyownt 3y agoInteresting tip too! Need to find the right combination however, I noticed that Alt-L might be a good one (no side effect it seems).
- madsr 3y ago+1. I mainly use this approach. If your next intended move is to go to the next line, Alt-J will exit insert mode and go to the next line immediately. Also the same for Alt+w/W/b/B, Alt+o, Alt+0, etc etc and it's just a matter of using your left thumb at the same time as navigating.
- divbzero 3y agoNice, I didn’t pick up on that one. And I do have Caps Lock mapped to remapped to Escape haha. If any vim enthusiasts haven’t read this history before, this article [1] provides a good overview of how ex/vi came to be. The photo of the Lear Siegler ADM-3A keyboard used by Bill Joy largely explains the odd choice of keys. [1]: https://twobithistory.org/2018/08/05/where-vim-came-from.html https://twobithistory.org/2018/08/05/where-vim-came-from.htm...
- stavros 3y agoBut remapping Caps Lock to a combination Ctrl/Esc is so convenient, regardless of Vim!
- arghwhat 3y agoTrick for those wanting caps lock to be compose instead: ctrl-c also works as escape, and has historically been slightly faster due to sidestepping the escape timeout.
- xeyownt 3y agoWow super useful, didn't know that. EDIT: removed comment about cursor behavior of ctrl-c, which comes from my vimrc config ^^ Turns out I learned that long ago, but never used it :-D
- marcusramberg 3y agoI've remapped caps lock to ctrl with chords and escape when clicked alone. Feel it's the best of both worlds :)
- xigoi 3y ago<c-c> is not completely equivalent to <esc>. For example, 50i=<c-c> will insert only one equals sign.
- dmi 3y agoI've been using Ctrl-[ instead of Esc for so long that I forget that a lot of people don't know about it. This may not be convenient on non-English keyboard layouts. More alternatives: https://vim.fandom.com/wiki/Avoid_the_escape_key https://vim.fandom.com/wiki/Avoid_the_escape_key
- mvanbaak 3y agosmall fun fact: I switched to this when the escape key was taken from me (thanks again NOT apple) After switching to a newer MacBook that has the escape key I did not start using that again, but stuck to the Ctrl-[ as it just works.
- metaltyphoon 3y agoBetter yet, remap CapsLock to Ctrl.
- eptcyka 3y agoWhat about control+c? Also, I've never used vim without remapping `jj` to <Esc>.
- distcs 3y agoCtrl+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}
- sidibe 3y agoSpacemacs 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.
- turboponyy 3y agofd sounds much worse as now you can't jump to d characters.
- gsinclair 3y agoFalse. The fd mapping would only apply in insert mode. Jumping to d only occurs in normal mode.
- turboponyy 3y agoOops - you're correct, of course.
- deleted 3y ago[deleted]
- distcs 3y agoI 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"?
- tambourine_man 3y agoAaaactually… professionals map jj to Esc. JJ Abrams disagrees, though.
- themadturk 3y agoDepends on how fast a typist he is.
- yoyohello13 3y agoRemapping Caps Lock to Ctrl is a life changer in any environment. Seriously, just try it. It makes a useless key actually useful.
- recursive 3y agoBut I use caps lock. Sometimes.
- nextlevelwizard 3y agoMaybe I've just grown blind to this, but how is this relevant? Unless you mean that you can define that
- oblio 3y ago[flagged]
- cerved 3y agothe bindings are by far the best thing about Vim
- oblio 3y ago[flagged]
- schrectacular 3y agoDo you still use a QWERTY keyboard? Or have you just been beaten over the head with them so long that Stockholm syndrome is super strong?
- oblio 3y agoDid you read my original comment? I literally mentioned QWERTY as another example of backwards compatibility screwing everyone over. I use QWERTY because I have to, I don't like it and I can't do much about it in practice. People frequently defend Vi's HJKL vehemently - just like - if I'm not mistaken - you, presenting it as a superior option for some reason.
- geysersam 3y agoAs if there are "studies" backing the claim that arrow keys are easier to use for navigation than the home row keys... Personally I don't want to move my hands from where I'm writing to the other side of they keyboard just to move the cursor.
- m45t3r 3y agoLike many things in our field, we try to justify our choices, and because generally folks in our field holds high standards about themselves, we should justify as the only right way. What in reality, it is all about user preference. In the end, use whatever your feel most comfortable. I hate the VSCode interface and all of those notifications/popups and general slow interface, but I can understand who doesn't care or think that even with those VSCode is still more efficient for them. I also can completely understand the issue that folks say when they lost a long time tuning their Neovim configuration to their preferences, considering that I just have done so. But I still prefer neovim to VSCode nowadays, and not everyone needs to think the same, and this is fine.