Live data from Hacker News

Modeless Vim

github.com

231–240 of 398 posts

Re: Modeless Vim

#231
post #224

Modeless Vim. I guess that’s a bit like a peanut butter sandwich with no peanut butter. But if that’s what you want, more power to you.

[deleted]

Re: Modeless Vim

#232
post #219

Earlier quoted context omitted.

There’s also Kakoune, which is very similar to Helix. See https://andreyor.st/posts/2023-09-20-why-kakoune/

Kakoune makes no claims to be Vim compatible though. The keystrokes are completely different.

Helix is not Vim-compatible either.

Re: Modeless Vim

#233
post #130

Earlier quoted context omitted.

Yeah but it’s a small island. If you learn Vim you’ll have access to Vi and Vi-like interfaces in lots of other software including terminals, database clients and everything that uses readline.

Curious what kind of interfaces you're thinking about? (Aside from vi, vim, nvim) From my experience anything with "vi navigation" basically just means using the home row keys for navigation + modes. So I haven't come across many interfaces yet where the verb order differences between helix/vim come into play.

Overleaf, for example, supports most of Vim’s bindings.

Re: Modeless Vim

#234

I can only imagine the kind of fascinating, or maybe frightening list of perceived requirements someone might need from their editor/ide that boils down to their installing this.

Here's a TUI / terminal editor I'd like: VSCode clone. Reads the same config file JSON formats from the same locations, loads and renders the same color schemes, runs the same Extensions Host, exposes the same API to extensions (with some things like WebView, CustomEditor and such throwing NotSupported obviously), keeps up with changes in all those formats. Major visual difference would be that whatever the editor fo…

It's interesting that you refer to Stockholm syndrome about vscode in a thread about vim.

Me, I first wrote programs in AMOS Basic, which was certainly not CUA either (I remember shift-backspace erased a whole line, which could be really frustrating). I've done enough learning of tiresome nowhere-else UIs... back when I played Nethack, I would of course insert a big S anytime I tried to save in another program for a while. Nethack was at least fun enough to make it worth it.

VSCode is fast for stuff I do in editors which is slow elsewhere (thanks in no small part to Mr. Gallant!) and better at doing anything an IDE used to do, than most IDEs. Does vim support full-featured language servers/tree-sitters these days?

Re: Modeless Vim

#235

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…

I recently started using Helix too and it does what I want out of the box and is the first modeless editor that really works for me.

I am sure you can set up vim to be very much the same, but that is a significant barrier to getting started. I have tried and had problems getting it as I wanted.

The problem is that the keys are different from vim so the muscle memory does not work across the two.

I would really like to have a more lightweight editor with the same key bindings for quick edits on small files.

Re: Modeless Vim

#236
Micro is probably better at this point for such purpose.

However I also have some customizations myself to use some kind of modeless commands to quickly select or move around, but I still model things around basic vim syntax and its fantastic move keys which keep me in the home all the time (e.g. Using alt+ghjk from insert, I move around, adding shit I select, without having to switch to move or visual mode)

Re: Modeless Vim

#238
post #105

Earlier quoted context omitted.

> 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 most countries outside the US, squash is called pumpkin.

> In most countries outside the US [and Canada], squash is called pumpkin.

Re: Modeless Vim

#239
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 accident.

Don't be a victim. Remap.

P.S : Yes, I know about people using Ctrl+[, or Ctrl+C, I know you got used to it but one gets used to anything, it does not mean it's good. A weird combination isn't great and Ctrl + C has some quirks --> https://vi.stackexchange.com/questions/25764/use-control-c-i...

P.P.S : Yes, I know about `jk` it's clever ok but my mapping is system-wide and now I enjoy Escape being at the right spot for bash, zsh, fish, gdb, firenvim vim modes at no configuration cost.

Re: Modeless Vim

#240
post #103

Earlier quoted context omitted.

For those who don't know, there are at least two different V8-powered Teslas. https://youtu.be/x-6kHjF1U1E?t=402 https://twitter.com/FthePump1/status/1738425546621825468

for a moment there, I was wondering why they'd install a JavaScript engine in a tesla.

Tesla uses Qt and Qt WebEngine uses Chromium, meaning that there is probably in fact a V8 JavaScript engine in any given Tesla.

https://github.com/teslamotors/buildroot/tree/buildroot-2021...

Post reply on HN