Live data from Hacker News

Modeless Vim

github.com

351–360 of 398 posts

Re: Modeless Vim

#352

One thing I sorely miss with vim (and which sold me to vscode - yes, I know) is editing in multiple places at once (not sure about the correct term). You select some text, press Ctrl+d to select another one, if you want to skip one Ctrl+k d, then just edit in multiple places at once. Simple and sooo useful, because you actually see each selection before you edit it, and you can select them one by one (or skip, or go…

vscodevim is a vim plugin for VSCode.

Re: Modeless Vim

#353

Earlier quoted context omitted.

> Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) I think this is great advice for EVERYONE, vim user or not. Someone else made this suggestion on HN some 8 years ago and I haven't looked back since. CapsLock is essentially useless for modern computing needs, but having a No/Cancel/Quit/Esc button immediately under your left pinky is fantastic. Your brain will get used…

Best use for capslock in my book is tap for escape, hold for ctrl.

That sounds awesome! I'm going to look into that.

Re: Modeless Vim

#354

Earlier quoted context omitted.

Not sure about where you’re from but where I’m from, you don’t make pumpkin pie from a can. You make it with pumpkin purée. From scratch. Get out of here with your non-pumpkin pumpkin pie propaganda. Some pumpkin, blended into a paste, some brown sugar, an egg or two, some heavy cream and some cinnamon and crushed cloves and you have your pie filling.

You can make it with homemade butternut squash puree too, and it will taste better because of its sweetness. Give it a try sometime.

if you're looking for a good pumpkin pie alternative while pumpkins are out of season, sweet potato pie is also excellent.

Re: Modeless Vim

#355
post #302

Earlier quoted context omitted.

Best use for capslock in my book is tap for escape, hold for ctrl.

Where do you map it that way?

as said here: https://superuser.com/questions/1716264/xmodmap-holding-a-ke... using this https://github.com/alols/xcape :

  $ setxkbmap -option caps:ctrl_modifier
  $ xcape  -e 'Caps_Lock=Escape'
if that need be run multiple times (i.e. in bashrc), add a guard:

  pgrep xcape >/dev/null || (
   setxkbmap -option caps:ctrl_modifier
   xcape  -e 'Caps_Lock=Escape'
  )

Re: Modeless Vim

#356
post #297

Earlier quoted context omitted.

> you are able to edit at ludicrous speed I never ever got this argument for Vim. I don't spend most of my time slinging around huge chunks of text or repeating commands like they do in YouTube videos where Vim pros flex their skills (to extend the fitness metaphor). I spend most of my time thinking about code design, reading documentation, writing plans, discussing stuff with my colleagues—editing, writing code is m…

> I spend most of my time thinking about code design, reading documentation, writing plans, discussing stuff with my colleagues—editing, writing code is maybe 30 – 40% of my time, at best. I also code fairly slowly anyway. ahh yes, the central brooklyn coffee shop as existential bus stop school of computering. "oh, you're 38 too, well then what are you doing with your existential crises?" "well, when i'm not working…

I don't get the point of this comment, nor do I fit the stereotype at all.

I'm in my 20s, find coffee shops extremely overpriced, have never set foot in New York City, don't listen to much music at all (and if I do, it's classical and Baroque from the 1700s), and usually write in C# or C++ (both in Visual Studio).

Re: Modeless Vim

#357

Earlier quoted context omitted.

If you don't already do it the neovim extension for vscode is nights and days better than the one trying to emulate vim in javascript.

I tried both (mainly to use my neovim extensions) but unfortunately it was buggy (around 6 months ago) for me. Has it gotten more stable now?

the only time i've seen any bugs is when the neovim version lagged behind what they require in the project. i would work but not well. upgrading neovim fixed it for me.

though, like any project, there are probably bugs at the edges... not sure what bugs you are experiencing however.

Re: Modeless Vim

#358
post #212

Earlier quoted context omitted.

That’s a butternut squash pie, not a pumpkin pie. ;) Try with pumpkin, nutmeg, cinnamon, and cloves… it’s that old timer pumpkin pie taste.

In most places in the world, the word “pumpkin“ refers to squash. A squash pie is also a pumpkin pie.

Yes, and pumpkins are squashes (Cucurbita) but pumpkin originates in New England USA where it refers to the orange squash gourd used to make Halloween carvings and decorations. Being that I'm from the US, this is "pumpkin". Not to downplay squash-based pastries or pies but there's only one pie that I will eat, day or night, no matter what - the beautiful, delicious, pumpkin pie. Plain, with whipped cream, with ice cream, with chocolate drizzle, with caramel.

Re: Modeless Vim

#359

Earlier quoted context omitted.

What's fun about this is that I was taught from my mother, and her mother before her, to use Butternut Squash when making "pumpkin pie" from scratch. This "tradition" of using Butternut Squash instead goes back to the 1930s at least.

Some areas have different ingredients depending on what’s available. Here in the United States, real pumpkin is preferred. You can use any gourd to make a pie but for the true pumpkin pie aficionados like myself, I can tell the difference when someone uses real pumpkin vs butternut squash vs sweet potato vs just creme, eggs, and brown sugar and some flour (I’m looking at you, Wegmans). In the southeast coast of US, i…

Given that my mother, grandmother, and I, were born in the States, I can definitely say that "preferred" isn't as wide spread as you think it is.

Re: Modeless Vim

#360
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...

For those curious another common major percentage of “pumpkin pie” blends (such as from Libby’s) is Dickinson squash/pumpkin which is a subspecies of Cucurbita Moschata like butternut squash. These can be found as heirloom seeds. https://www.thespruceeats.com/what-are-dickinson-pumpkins-52...

Here in the Willamette Valley of Oregon, we grow a lot of crops for seeds, of which various squashes are some. It’s amusing to see the first time, but squash grown for seed is typically just shredded in the field, with seeds collected and the flesh tossed out over the field. Results in a lot of “wtf are they doing” among those unfamiliar, because it looks exactly like pumpkins were grown just to immediately destroy them.

Post reply on HN