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.
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...
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.
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.
Apparently coffee cake has no coffee in it so we really can’t believe anything anymore.
Oh but mine does… the glaze is powdered sugar and espresso.
My life has been a lie. That sounds incredible.
To be fair - coffee cake in the US is cake to have with coffee and doesn’t normally contain any coffee.
In the UK and EU, coffee cake is cake with coffee.
Likewise tea cakes in the US are cakes made with tea and tea cakes in UK and EU are cakes to have with tea. So…
Not a lie, just a Spider-Man meets Spider-Man moment when you learn you can actually make coffee cakes with coffee (or espresso) and you can make tea cakes with tea (I prefer oolong).
pie you have pumpkin with
You owe me a new keyboard and monitor tyvm
Were you drinking hot computer tea when you read that comment?
I’m from the EU and I’ve never had coffee cake with no coffee nor tea cake with no tea. Very fascinating tidbit about the naming, TIL
To confuse matters more, in this part of EU the coffee cake is made with coffee and tea cake is made without tea.
Oyster stout shouldn't have oysters in, but usually does.
The cake is a lie.
This sounds good but not the kind of coffee cake I’m used to
yellow or moist white cake (or marbled cake) with butter crumble brown sugar top and an espresso glaze. The coffee cake of coffee lovers.
Reading this thread I can't help but feel like HN readers need a reactordev recipe book.
But coffee cake is the cake you have with coffee, not made from it.
Not true. Standard staple in my oarents house was coffee cake made from coffee with walnuts.
well maybe pumpkin pie is a pie you have with pumpkin
Wait until you learn about Tunnock’s Tea Cakes.
There's no tea, and they aren't cakes - but there is a whole fresh Tunnock in every one!
Next you are probably going to tell me black forest cake is not made in the black forest any more.
It’s only Black Forest cake if it comes from that region of Germany. Otherwise it’s known as Chocolate Cherry Conifer Cake.
American coffee cake doesn't have coffee, but English coffee cake does.
Wait until you find out what baby food is really made of.
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.
In Australia it’s known as “butternut pumpkin”. Anyway I always used kabocha squash.
+1 kabocha rules in pie
I freely acknowledge that you can make a delicious “pumpkin” pie with butternut squash, but a real sugar pie pumpkin (use Halloween leftovers and their mealy starchy flesh at your peril) remains superior in my opinion. Sweet potato pie, though, can be absolutely delightful with no squash in sight. Just don’t call it pumpkin pie. ;)
if you're looking for a good pumpkin pie alternative while pumpkins are out of season, sweet potato pie is also excellent.
I've tried it and my experience is the exact opposite. I have good results with for example "Crown Prince" variety pumpkins, which I find far sweeter and tastier than butternut.
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, if you make a “pumpkin pie” with squash, you won’t be invited back next year.
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.
In most countries outside the US, squash is called pumpkin.
If you actually want to be pedantic, note that I did not say all countries, therefore my original statement was just as correct as your edit.
If YOU actually want to be pedantic, I was making the point that it's a North American thing, not a US thing.
I've heard this claim various times, but it doesn't really make a lot of sense. Butternut squash has a carb:fiber ratio of about 6:1. Canned pumpkin is more like 3.5:1. Sure, the USDA might be lax on the precise definition of the word "pumpkin", but I don't expect them to go so easy on the nutrition data.
As Wikipedia notes:
If the article is simply intending to say that it does not usually come from squashes that are orange, oblate and ridged, then that's fair. But I don't think it's mostly butternut squash, and I don't see why manufacturers would try to hide using the most popular variety of squash.
Interestingly, I expected them to go easy on pretty much anything
If you'd left off "not pumpkin", you'd be technically correct. But it's a somewhat nuanced topic.
https://www.snopes.com/fact-check/canned-pumpkin-isnt-actual...
[I'll just add one more note, not mentioned in the article, which is that typical Jack-o'-lantern pumpkins are quite awful for cooking. Much worse than any canned pumpkin. If you want to cook with fresh pumpkin, research the varietals that are known for good texture and flavor. Don't grab a carving pumpkin from the pile.]
Ugh, they really are much less aesthetic than a nice plump orange one. This feels similar to the childhood realization that regardless of the name or the box color there's not really much strawberry juice in anything; it's all apple and pear.
But butternut squash is pretty similar to pumpkin. They are both winter squash, and the definition of pumpkin is a little fuzzy anyway. This would be more like replacing the pumpkin with apples.
In my household for the last 20 years, it is made from pumpkin. First from sweet pumpkins we would pick up every year at the Halloween pumpkin patch that we as a family tradition would take our daughter too. Now it is made from ones grown in our own garden. They are simple to grow. Pick them, roast them, purée them and freeze until needed. We also make a lovely spicy Indian style pumpkin soup from the purée. The pie is quite different from any store purchased pie and well worth it.
Ah, I always wondered why pumpkin pies are relatively delicious, while pumpkin is gross. I chalked it up to the sugar.
(Chalk and sugar in the same sentence just made me think of Macdonald's milk shakes.)
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...
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.
What exactly do you hate?
The site says:
I haven't setup Control-S, but I have very similar bindings: Shift and arrows for selecting, then Alt or Control-Shift for moving the selection around, as shown on https://raw.githubusercontent.com/csdvrx/CuteVim/main/record...
Also, like the author I have a shortcut to change themes (F9) and another to toggle invisible chars (F8), and I try to use the top of the screen as much as possible (I show the offset in hex, the row and column position etc).
I like how vim is modal, but some Windows shortcuts (like Control-C) just make too much sense to given them up on Linux: I have put `stty intr ^X` because using Shift-Control-C to copy from the terminal was way worse.
Having a few chording shortcuts give you the best of both worlds!
BTW, all of the other shortcuts proposed on this site make a lot of sense to me: I do expect Ctrl-F to search, and Ctrl-T to open tabs, I think I will copy a few :)
Back in my day, when we pressed Ctrl+S, the terminal froze, and that's just the way we liked it.
https://unix.stackexchange.com/questions/12107/how-to-unfree...
I don't think anyone needs (or even wants) the terminal to freeze on such a common shortcut in 2024.
Personally, I have reclaimed Ctrl S for word delete (usually done by Alt-d)
Related: why does the shortcut to delete back a word (^W), close my browser tab?
That's why I think MacOS is superior: it actually uses the "meta" key for useful stuff. So, Cmd-W would close the tab, and Ctrl-W would probably still delete a word (can't check right now, but it has a lot of 80s-era keyboard shortcuts for text still working)
macOS uses a lot of Emacs bindings. Ctrl-a for beginning of line, ctrl-e for end, etc etc.
And, agreed, macOS' use of shortcuts is fantastic and I wish I could replicate it on Linux.
If you use gnome/xfce:
Try both commands.Very cool!
I also want to use Command (Super or Hyper?), which really improves keyboard shortcuts. Command + left/right = jump to beginning or end of line, Option + left/right = jump to beginning/end of word. I know you can do the same with Control + Shift, but some apps don't support it. Plus Cmd+c/x/v for copy/cut/paste works fine in terminals, I don't have to remember to "code switch" my shortcut "language". Cmd+Backspace deletes the whole line, etc etc.
I just swap Ctrl and Caps Lock, much better.
setkbmap us -option ctrlL:swapcaps -option compose:rwin
You can place that command at XFCE's startup settings for applications.
You missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use. Cmd-C can work everywhere, but GUI applications on linux do not default to that.
I bound WindowsKey-C to run the command "xsel|xsel -b" which copies the active selection to the clipboard. It's a small step in the right direction; it's possible to get paste working as well, but that takes awareness of apps (or reconfiguring all GUI applications to use the same shortcut as the terminal).
I use emacs and I respect emacs developers, but it is not originally emacs bindings: http://unix-kb.cat-v.org/
That gets me multiple times a day. What is even worse is ^h opens the history instead of just deleting the last character.
Delete current word, delete current tab. Its related.
it also switches focus window, which is makes things even more confusing
This still happens to me too often. Especially annoying in web-based editors.
Super helpful for basically anything in a terminal. Stuff is going to flow by pretty quickly or at least keep bumping the terminal every couple seconds, usually when you _least_ want it to do so. Reading off whatever your program emitted while it's pushing the terminal up every half a second gets really annoying without Ctrl-S. It's probably the most used terminal shortcut after Ctrl-C for me.
That's a fine argument, but not relevant for when you're in an editor -- and modern TUI apps disable XON/XOFF for that reason.
I find it rather useful to keep important output of programs on the screen when it is impossible (or I forget) to pipe them into a pager.
We should concede that /etc/profile ought to disable that with stty by default.
Ctrl-Q whew
Remapping Ctrl-O denies the ability to switch modes. That’s what turns this from simply an opinionated config to a breaking change.
That's fair, changes should try to preserve existing uses
Ctrl-C does work in the GUI. That said, one thing I like about Linux is being able to highlight text using the mouse and then pasting it by middle-clicking. I don't have to interact with the keyboard at all to copy and paste text that way.
Seriously, it hurts. It makes sense, but it hurts. If only there were a more gentle path to editor modes. Maybe some simple graphical representation of the modes and commands that could be down in the corner? Like a dynamic vim infographic that clued a user into the most likely commands.
Helix is beginner friendly. It's keybindings make more sense than vim's.
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.
Then the question is readline. Not saying that vi or emacs deserve to win readline, but it’s up to you to describe how Helix mode would differ from vi mode.
i3 window manager leans heavily on vim defaults for navigating windows.
In vimium I use vim navigation for scrolling around, / for search, and a bunch of tab actions that aren't vim accurate but vim inspired.
In mpv I use gg/G to getting to the beginning/end of a file.
Many terminal file managers use vim binds or idioms (such as x for delete, marks, etc).
Shells have Vi mode: bash, fish, zsh.
Helix is wonderful. I did make one keybinding change: Switching in and out of Insert mode is CTRL-i so I don't have to wander off to the escape key so often.
For me, the reason to learn vim is because if you know how to use it it's a really nice editor that's preinstalled on almost any system you shell into. I use VSCode on my home system and occasionally on a remote system, but I'll use neovim when doing a quick edit from the command line and vi when I happen to be o a remote system. In my ideal world, I would just use one editor everywhere, including if I'm hot-seating on a system that is not mine and without internet access: having vi already under my fingers is a nice approximation of great editor + everywhere.
I taught myself vim by setting the vim cheat sheet to be my terminal background, though I greyed it out slightly so it didn't obscure what I was typing. Once you have that there are only a few phrases you really need to know: "+p, "+y, "+d to access the system clipboard, :split and :vsplit, C-w w to switch windows, and g C-g for word/char count.
https://www.glump.net/_media/howto/desktop/vim-graphical-che...
If I had a lot more free time, I've been noodling with some designs for a text editor with modes. It would start up by default in the equivalent of vim's insert mode where all the normal CUA keybindings (e.g. ctrl-c for copy) worked. But with many more. Then, if you go to the equivalent of normal mode you can just press X to do the same thing ctrl-X does in insert mode.
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...
Noice.
It’s similar to preferring guitar hero because a real guitar has too many frets and too many chords to learn
More like learning the clavicord.
“But your fingers aren't touching the strings!”
I guess it's the end-goal then, though. If your goal is to become a rockstar and play the guitar in a band, GH is probably a very bad route to it. But if it is to "have fun" its perfect.
Same with this vim: if you just need an editor that is recognisable and "not weird" then this modeless vim might be useful; though why not just install nano, pico, gedit, notepad++ or even notepad.exe?
Emacs runs in a terminal. Vim isn't installed everywhere, Vi is. If you're going to install an editor and a config you might as well just install Emacs.
I believe only the BSDs install real vi in the base OS.
Everywhere else, when you type vi, you get vim. Some neophile Linux distros provide neovim instead.
Regardless, vi and vim (and neovim) are the same in basic operations.
It's still functionally correct that "vi is always installed" and no additional action is necessary for basic text editing.
Doesn't most major distributions alias vi to vim nowadays? I think I've also come across vi being aliased to vim-tiny if I remember correctly.
In Jef Raskin’s ‘Humane Interface’, there’s a good justification to why modes are evil, mainly leading to excessive user errors, so it’s not that surprising.
Maybe putting diesel generator in a Tesla so you can use it even though charging is not your cup of tea.
I disagree. It makes no more sense than turning a modeless editor into a modal one. Just use the right tool for the job.
"That said there is something absolutely defining about this."
Not expecting anyone to agree, but this is how I feel when using minimal shells that do not implement vi editing, e.g., set -V or set -o vi. Busybox/toybox is one example. In the aggregate, I actually do more editing on the command line than I do in vi. If the shell is permanently set to emacs-like keys and editing then I am constantly switching back and forth to "vi mode" everytime I edit a text file and return to the shell, i.e., nonstop.