4 ms·
> The hardcore, moved to vim or emacs, trading immediate feedback and higher usability for the steepest learning curve I’ve seen The only hard part about vim i
by cassepipe 5mo ago
> The hardcore, moved to vim or emacs, trading immediate feedback and higher usability for the steepest learning curve I’ve seen
The only hard part about vim is to be forced to strecth the finger up to Escape for what is essentially the most essential function in a modal editor: Going back to command mode. The ideal workflow is do a quick edit and go back to command ("normal") mode instantly. The fact that Escape is used is a historical artifact that needs to be called out.
So just remap CapsLock to escape, it system-wide, it's not that hard and it's nice to have Escape there generally. In Linux and MacOS it's just a GUI setting away and in windows you just have to edit (create?) a registry key. Can be done on any machine under a minute.
Apart from that I don't see where the learning curve is since you can just start with the basics from vim-tutor and look up for more when you feel you're spending too much time on something. I already felt faster than in any other editor when I just knew the basics. The real problem of vim is that you get used to modal editing very quickly and it feels like the stone age when you don't have it.
- mr_mitm 5mo agoUnfortunately, remapping escape to caps lock can lead to serious friction if you have to work with different laptops a lot, like I do. The muscle memory gets in the way a lot.
- thayne 5mo agoIf only keyboard makers would just always put escape there.
- wtetzner 5mo agoIt should always be "hold for control" and "tap for esc".
- lucasoshiro 5mo agoI always remap Caps Lock to Ctrl. I understand that Caps Lock needed to be next to Shift in typewriters, but in computers it seems like it is wasting a key in the home row for only be used sometimes for screaming (which can be done by holding shift...)
- IBCNU 5mo agofellow Caps Lock to Ctrl remapper (and neovim) here...
- kombine 5mo agoI remap Caps Lock to Ctrl when held and to Esc when pressed - the best of both worlds when you live in Neovim. https://github.com/rvaiya/keyd https://github.com/rvaiya/keyd works really well for me on Linux, but there is a similar software on MacOS.
- semanticc 5mo agoEasy with https://karabiner-elements.pqrs.org https://karabiner-elements.pqrs.org on Mac.
- cassepipe 5mo agoand if you really need the SCREAMING, vim got you covered. Just type your word normally , select it in visual mode and type gU
- elzbardico 5mo agowhy visual mode? gUiw
- cassepipe 5mo agoWhich is why I never went with CapsLock being both Ctrl and Escape depending of whether it's part of a key combo because it's whole setup. On the contrary, whenever I use someone else's machine I can quickly go in the settings, set the option and then set it off after I am done.
- bonsai_spool 5mo agoCtrl-[ is accepted across Vim installs
- olorion 5mo agoWhen using Ctrl where caps lock ususally is, this can be a very comfortable "pinkies out" manuver.
- jolmg 5mo agoCtrl-C also works.
- mr_mitm 5mo agoNo, that's different: https://vi.stackexchange.com/a/20028 https://vi.stackexchange.com/a/20028
- deleted 5mo ago[deleted]
- ShyCodeGardener 5mo agoWorks most of the time, the rest of the time you can just use `Ctrl-[`
- keithnz 5mo agoI map it on all my computers, works well, if I end up in an environment where I don't have the mapping I just use Ctrl-[ or stretch. When I end up helping other devs and use their non vim setups...now that really trips me up. Capitals everywhere, random hjkls ... I have to really slow myself down when using a "normal" editor.
- TranquilMarmot 5mo agoOn macOS, this is easy. For everything else, I use mechanical keyboards that all run QMK/VIA so I remap it at the hardware level.
- pilgrim0 5mo agoremapping capslock to esc is something nobody whom i've shamed into doing can go back from. it's just night and day. i've been thinking lately that the reason we need hjkl is vim is because the keyboard layout is actually bad for arrows. on typewriters there was no arrows, but on a computer arrows are of primary importance. i think the spacebar doesn't need to be so big, there's no reason for it to be available to both thumbs, and i think moving the small set of arrows into the left or right part of the spacebar position would be so much better for typing because the hjkl hack only work in hacker editors, but we need to use arrows a lot on normal software and it's super bad for your hand if you use it a lot. i started developing inflamations because of the way i fold my thumb to reach for the arrows without moving my entire hand.
- MarsIronPI 5mo ago> i think the spacebar doesn't need to be so big, there's no reason for it to be available to both thumbs This is why I love JIS, even though I don't actually need the Japanese keys. That small spacebar is so much better, and you get three extra keys (Henkan, Muhenkan and Kana) along the bottom row. As an Emacs user, I bind Henkan and Muhenkan to be Control keys. It's very comfortable.
- wpm 5mo agoI was just thinking this today tweaking the layout on my lilypad58, a layout I don't love and kept arriving at, "I just want more modifiers". Using JIS is genius.
- MarsIronPI 5mo agoMy JIS bottom row is currently: <Meta> <Super> <Alt> <Control> <Space> <Control> <Alt> <Super> <Compose/Meta> <Greek> I have left Control mapped to Meta, {,Mu}Henkan mapped to Control, Kana to right Alt, right Alt to Super, Menu to Compose/Meta (tap/hold) and right Control mapped to Greek. I use keymapper[0] to do low-level remapping and tap/hold, and a custom XKB layout for the Greek modifier. I highly recommend this setup. [0]: https://github.com/houmain/keymapper https://github.com/houmain/keymapper
- lucasoshiro 5mo ago> The only hard part about vim is to be forced to strecth the finger up to Escape I still don't understand why people keep mentioning this, ctrl-c works as well to go back to the normal mode. > windows you just have to edit (create?) a registry key Or use Powertoys, which I don't know why it isn't a setting. (saying as a Mac, Linux and Emacs user, although I still use Vim in the terminal)
- cassepipe 5mo agoBecause Ctrl+C for the most important function of you editor kinda sucks ? I mean you can get used to it, but you can get used to anything. Maybe we can have nice things ? Also just to be pedantic: https://stackoverflow.com/a/5036294/10469162 https://stackoverflow.com/a/5036294/10469162
- qu4z-2 5mo agoC-c isn't quite the same, alas, but C-[ is. (compare 5itest<esc> vs 5itest<C-c>)
- tommy_axle 5mo agoMap to "jj" and call it a day since your finger is already on the home row Also ctrl + [ is standard terminal/ascii for esc so that might be a bit more ergonomic than reaching for esc
- cassepipe 5mo agoYes but then you get used to jj (or jk) which might not be available on other vi modes (shells vi modes, gdb, glide browser ?) and it's overall quite nice to quickly escape any situation by having the key be closer. Ctrl + [ would be acceptable if it wasn't, imo, the most important function of the editor. EDIT: My bad, you can do it with Glide apparently
- tern 5mo agoI've yet to come across something with vim bindings that lacks a .vimrc where you can map 'jk'. Either way, switching back to ESC is as annoying as it is in the first place.
- cassepipe 5mo agoWell I have given at least one example. Do you not use bash/zsh/fish/nushell vi modes ?
- mmahemoff 5mo agoClaude's vim bindings don't support ESC mapping, unfortunately for muscle memory. https://github.com/anthropics/claude-code/issues/25306 https://github.com/anthropics/claude-code/issues/25306
- tuvix 5mo agoNot sure if this is bad form but i’ve always loved using jk for escape. It feels so natural to roll your index and middle fingers to get back to normal mode. I agree, too, besides reminding myself to use numbers before movement commands there was really nothing that felt super hard about vim. It almost disappointed me, I always heard the jokes about not being able to quit it!
- cassepipe 5mo agoYes but jk does not work in other contexts (shell vi modes at least for me) and it's actually to have Escape closer to home to quickly get out of a situation To be fair I mostly use `/` + (n/N) + Enter with `incsearch` on (by default in nvim), I feel it's really the superior way to move around and it has deprecated a lot of my vim-fu. In the same way, apart from occasinal `ciw` (or other text-objects), I do most of my edits with `:s/old/new`. I don't even use a complicated regex as sometimes it's just easier to write one or two simpler ones. It's just faster to not have to go to a specific location before you make an edit.
- saratogacx 5mo agoWeirdly enough I actually like that Esc is so far away and it is not for efficiency but for ergonomics. It forces me to lift my hand up and reposition it away from the home row and back so I'm forced to move muscles that would otherwise just wait around and collect RSI points. I tend to use the arrow keys often as well for the same reason on the other hand (although I do still use hjkl quite a bit still)
- redlewel 5mo agoYou know that CTRL + [ functions same as ESC right? Sr. dev at my job told me about this a year ago and it made vim SIGNIFICANTLY more comfortable to use day to day.
- maccard 5mo agoI’ve been using vim bindings for a decade and never knew this…
- skydhash 5mo agoIt's about the ascii code and terminal code. (Almost?) Every non-printing character can be entered with Ctrl+<some keyboard key>. With Control pressed, D is eot (end of transmission), G is bell, H is backspace, I is line feed (next line), L is form feed (new page), M is carriage return (start of line), Z is substitute, and [ is escape.
- billforsternz 5mo agoI is tab ('\x09' or '\t') and J is new line ('\x0a' or '\n'). These Ctrl combinations follow a predictable linear mapping to the control character section of the ASCII table. Basically Ctrl subtracts 0x40, so I is 0x49, Ctrl I is 0x09.
- __mharrison__ 5mo agoTIL: Ctrl subtracts 40. (28 year emacs user)
- pjz 5mo agoon a linux box try `man ascii`
- __mharrison__ 5mo agoThere are lots of man pages. This one doesn't mention Ctrl being minus 40. Not sure what the point is.
- watsamonad 5mo ago> I don't see where the learning curve is Right here: > modal editor
- a96 5mo agoThe big problem is stupid guides talking about modes instead of calling it a command interpreter, which it is. Modes are an irrelevant implementation detail.
- mghackerlady 5mo agoFrom the emacs perspective, it's barely even a learning curve. If you want to use the default keybinds it takes maybe a day to get used to them (probably less on mac since it uses some of them by default already) and GNU emacs has a very nice CUA mode. Hell, if for some reason you like vi keybinds and don't use vi and don't want to use vi, emacs has a pretty good vi mode
- deleted 5mo ago[deleted]
- canthonytucci 5mo agoIf you’re on windows, powertoys is a set of first party customization utilities, one of which is a pretty nice keyboard remapper. https://github.com/microsoft/PowerToys https://github.com/microsoft/PowerToys
- randusername 5mo ago[dead]