Live data from Hacker News

Modeless Vim

github.com

281–290 of 398 posts

Re: Modeless Vim

#282

My usual comment on any thread touching vim, as an answer to all hypothetical comments talking about how vim never clicked : Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) It's the most important key and you should punctuate all your inserts with it. So it'd better not be the key that's the furthest away from your fingers. The reason that's the case is an historical a…

WHAT? HOW AM I GONNA TYPE MY SENTENCES THEN!?

Re: Modeless Vim

#283
post #193

Earlier quoted context omitted.

There is a well known plugin for neovim to do this kind of behavior. You can even create your own hotkeys into that plugin and will help you navigate and memorize different hotkeys for the editor. The plugin is called whichkey, and this is their github https://github.com/folke/which-key.nvim

Off-topic: does Neovim have a stable GUI distribution that runs well on Windows and includes fuzzy file search and a file explorer?

I don't think there is a pre-packaged flavour of this. You'd have to use a plugin manager for neovim to install fzf.nvim, telescope and nvimtree. If you want to use nvim more extensively I'd recommend a config bundle like NvChad, AstroNvim or NvPunk, those are mostly cross-platform (might require a few utils like ripgrep, stuff for LSP). They already come with all of this pre-configured and you can disable any plugins you dont like easily. They're also suprisingly snappy thanks to conditional plugin loading.

Re: Modeless Vim

#284

Personal anecdote: I've used Vim for many years, but I never progressed much beyond the basics, because I almost never put much active effort into learning more advanced motions. About a year ago, I discovered the Helix editor, which has a (IMO) genius feature, where pressing a key to start a motion or other action pops up a little pop-up box that shows all the possible options. It just perfectly clicks with my brain…

LazyVim comes with this as well, although with a 1 second delay or so in case you've already got it in muscle memory. It's the Neovim flavor that Shell Bling Ubuntu [1] installs, though, so I'm biased. I've been considering including an option to install `hx` as well in there. [1]: https://github.com/hiAndrewQuinn/shell-bling-ubuntu

There's a great write-up of a great set of utilities!

Re: Modeless Vim

#285
post #37

Conceptually the reasons the author give for this (syntax highlighting and other features of vim outclass other terminal-based editors) make total sense. That said there's something absolutely defiling about this. It's like installing a V8 in a Tesla, or replacing the pumpkin in pumpkin pie. I love that it will make VIM more accessible for more people, but I hate how they do it. Kudos to the author.

> It's like installing a V8 in a Tesla, or replacing the pumpkin in pumpkin pie. Most pumpkin pies are actually made with butternut squash and other similar squashes, not pumpkin. https://en.wikipedia.org/wiki/Cucurbita_moschata https://www.thekitchn.com/whats-actually-in-your-canned-pump...

In the US, canned pumpkin is 100% pumpkin, and the big name frozen pumpkin pies all list pumpkin, not butternut squash or other imitators.

And then you have sweet potato pie...

Re: Modeless Vim

#286

Personal anecdote: I've used Vim for many years, but I never progressed much beyond the basics, because I almost never put much active effort into learning more advanced motions. About a year ago, I discovered the Helix editor, which has a (IMO) genius feature, where pressing a key to start a motion or other action pops up a little pop-up box that shows all the possible options. It just perfectly clicks with my brain…

Of course, Spacemacs provided this functionality out of the box ten years ago using evil-mode (which is actually vim, so all the motions work in vim too, not just some of them) and which-key ten years ago and it's simple to set up in vanilla Emacs too, even for a beginner (I know because this was the path I took as a beginner)

Re: Modeless Vim

#287

What's wrong with "modal"? I don't think "modeful" is a word.

See http://worrydream.com/refs/Tesler%20-%20A%20Personal%20Histo... (specifically the sidebar “How Modes Degrade Usability”) There’s also a sidebar “Objections to Modeless Editing and Cut/Copy-Paste”

My point was just that "modeful" isn't a word. Vim is a "modal editor." The article you cite does not include the word "modeful."

Re: Modeless Vim

#288
post #272

My usual comment on any thread touching vim, as an answer to all hypothetical comments talking about how vim never clicked : Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) It's the most important key and you should punctuate all your inserts with it. So it'd better not be the key that's the furthest away from your fingers. The reason that's the case is an historical a…

But caps lock is remapped to control already! :)

You can have both. Esc on tap, ctrl on hold.

Re: Modeless Vim

#289
This is blasphemy of the highest order. Modeless Vim is akin to rewriting the universe's source code – an audacious act that sends ripples through the cosmic keystrokes, disrupting the sublime balance of modal existence!

Re: Modeless Vim

#290
post #272

My usual comment on any thread touching vim, as an answer to all hypothetical comments talking about how vim never clicked : Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) It's the most important key and you should punctuate all your inserts with it. So it'd better not be the key that's the furthest away from your fingers. The reason that's the case is an historical a…

But caps lock is remapped to control already! :)

[deleted]
Post reply on HN