Live data from Hacker News

Vim.wasm

rhysd.github.io

201–210 of 291 posts

Re: Vim.wasm

#202

Earlier quoted context omitted.

Hah that’s good one! I need to take a vacation and re-examine my vim life. So many good things to explore and muscle memory to tweak.

I wonder if there are any studies that look at how hard it is to permanently readjust muscle memory as you age. Would I ever (at 31) ever achieve the same fluency with emacs if I switched cold-turkey today as I've developed with vim in my teens and twenties? What about in my fifties?

I'm 33, switched to emacs the end of the last year, still find the way that vim edit files better, but the ecosystem around emacs has a ton of niceties, so for me the solution was to install evil-mode and configure it to work as close as possible to my vim configuration, but in the end I decided to left some things the emacs way.

Now I sometimes find myself using some of the emacs shortcuts when editing files with vim...

Re: Vim.wasm

#203

Earlier quoted context omitted.

Inflammatory take: people resent esr's right-wing politics.

So they do. It shouldn't matter in this context. Unlike in fiction, real-life humans aren't universally perfect to everyone's standards. In some areas they believe or practice something great, in others they say or do repugnant stuff. Fortunately, you can evaluate one's contribution in different areas in isolation, and I wish more people would learn how to do that.

... it's not like his right-wing politics are repugnant. Come on.

Re: Vim.wasm

#204
post #80

I am impressed that :imap jk :imap kj works great. However it seems like outer and inner text objects aren't working at all. E.g. daw, ci)

is this a common key binding? I've seen it before and it makes a lot of sense but I'm wondering if I will run into issues. I don't want to disrupt my flow and muscle memory and later regret it.

I use it and love it, even after binding Caps Lock to Esc.

The only issue I have is when I type something that ends with j or k and immediately want to exit insert mode. e.g. if I type "ack" and then mash jk to leave insert mode. Sometimes the j will hit first and only "ac" is left in the buffer.

That happens rarely though, and sometimes now I'll know it's going to happen and consciously type "ackkj" or just pause a beat to ensure the right thing happens.

Re: Vim.wasm

#205
post #86

Earlier quoted context omitted.

RMS is the Terence McKenna of open source: a fundational figure whose ideas where way ahead of the curve, but also a too extreme to attract the mainstream.

Almost no one goes full RMS. But I suggest that the world would be much better if everyone went even 50% RMS. Relevant: https://old.reddit.com/r/StallmanWasRight/ (Disclosure: RMS was a childhood hero, since I read the Steven Levy "Hackers" book, right up there with Mr. Rogers, Richard Feynman, Neil Armstrong, and Marvin Minsky. One day, RMS reached out, to ask me to sign over copyright, to the FSF, of a tiny bit of…

> But I suggest that the world would be much better if everyone went even 50% RMS.

I disagree. Stallman infuriates and disappoints just as much as he inspires. He often comes off as rambling and intransigent. Years ago I found an open letter to him that I found reasonable[1]. Near the end, the writer considers how Stallman’s way of presenting an argument is harmful to his goal:

> Dr. Stallman, I have a tremendous amount of respect for your contributions to GNU, emacs and gdb amongst others. You are a man of considerable intellect and programming ability. That said, I nor the people that I spoke with about your talk found you to be a particularly charismatic or persuasive speaker. The only people that seemed convinced by your speech were the ones who had already been leaning towards your point of view to start with. Several friends of mine who had not heard of the FSF before left half way through because they were so put off by some of conspiratorial rhetoric above.

Stallman’s reply was a single line:

> I am skeptical of advice from people who disagree with what I stand for.

Stallman isn’t a paragon or righteousness. He’s a rambling human with as many biases and unreasonable obsessions as the next person. He makes me question if he really wants to change the behaviour of the masses, or if he just wants to mock and deride what he doesn’t like. If he’s going for the former, he’s doing an awful job; you don’t convince people to change their views with aggressiveness and ridicule. If he’s going for the latter that’s his prerogative, but it’s not my belief that people like that are beneficial to the world.

[1]: http://alexeymk.com/dear-dr-stallman-an-open-letter/

[2]: http://alexeymk.com/dear-dr-stallman-the-aftermath/

Re: Vim.wasm

#206
post #135

Earlier quoted context omitted.

The actual issue is that Windows and Linux don't properly use a ‘super’ key―while the ‘Win’ key is sitting there uselessly. Ironically, MS' own ‘ergonomic’ (cough) keyboards have gigantic Win keys, right under the thumbs which are the strongest digits. These keys are great to use on Mac, it's an eye-opener as to how the historical keyboard mutations ended up in just the wrong way for two platforms (and for Emacs). I…

> The actual issue is that Windows and Linux don't properly use a ‘super’ key―while the ‘Win’ key is sitting there uselessly. Some people do use the super key. I have it bound to a huge number of actions (WASD to switch workspaces, Alt+WASD to move window to adjacent workspaces, C to close window, X to pause/unpause media, Z to show workspace overview, tab to switch between workspaces like alt-tab does for windows, P…

> There are no worries about conflicting keybindings when you use super

Aren't there conflicts on most desktops?

- Windows, off the top of my head, has Win+R, Win+C, Win+V, Win+x, Win+D, Win+L, Win+E, Win+Directions - Linux (well Ubuntu/Gnome3) has Win+L, Win+R, Win+Mouse, Win+Directions - macOS (considering Ctrl to be super here) has Ctrl+Arrows, along with many common Ctrl+Letters from the unix world

Re: Vim.wasm

#207

Earlier quoted context omitted.

Whoa, I was not aware of this. Now I can completely avoid using the touchbar!

Man, what a sad statement...

I get where they are coming from. I find the touch bar pretty neat and useful... But it's dynamic and I don't want that to interfere with pure muscle memory tasks like typing.

Re: Vim.wasm

#208

Earlier quoted context omitted.

Whoa, I was not aware of this. Now I can completely avoid using the touchbar!

You can also remap a key like Caps Lock to Escape, straight from System Preferences on macOS (unless you're already remapping it to Ctrl or something)

I do this and while I'm on my magic keyboard I sometimes forget and keep using the physical Esc key. I need to see if I can use something like BTT/Keyboard Maestro to respect the physical (or Touchbar) Esc key but send a notification of something like "You should use the Caps Lock Key instead" to help train myself better. I will say it's really nice that macOS makes it stupid easy to map Caps Lock to Esc and it work flawlessly for me.
Post reply on HN