Live data from Hacker News

Show HN: CuteVim – Portable Vim with a cute vimrc

github.com

51–60 of 74 posts

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#51
post #49
post #45

Earlier quoted context omitted.

Neovim is a bit of a disappointment on a certain front. The devs stated decision is not to deliver an actual editor (up to a point), their focus is on creating an editing component and ecosystem. Which is fair on their side, but it shows in the quality of end-user tooling. For example nvim-qt is quite barebones compared to Gvim (which could be argued to have had too many features... maybe). > Tried neovim a few times…

Project governance types affect the end result. While smaller projects like Helix have a few (or maybe one?) decision makers, vi/vim/nvim is such a large and decades old community with so much diversity that the proliferation of plugins - which in itself would not be bad if there wasn't so much low quality and abandonware without clear signs that that is the case - cannot be easily transformed into a solution most wi…

Vim/Neovim need package managers or at least package repos with a great degree of curation.

I really like the Sourceforge/PyPi maturity ("5 - Production/Stable") ratings. Of course they can be misleading, but at least they're a data point.

I also like the idea of package bundles, but more than that, I like the idea of package bundles which are suggested by core devs, to make them a bit more official. Sort of 2nd tier of trust.

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#52
post #34

Earlier quoted context omitted.

The whole point of Vim is to configure it however you dang well please! But yes, calling these defaults "sensible" isn't the best idea. You could certainly make a case for some sensible vim defaults, but these ain't it (even though I like some of them).

That's the whole point of emacs; there is no point to vim, then.

That's not true. For many people Emacs' text editor is the least interesting part of it and use evil mode to get Vim-like bindings. While the jokes may lean on the differences in key-bindings, they are hardly the whole story. Vim is a super lightweight editor that is available everywhere and very easy to carry around your own single-file config. You're allowed to configure it however you want. Vim too has its share of annoying key chords... is one I use often enough that I stilllll haven't made a mapping for (and likely never will at this point).

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#53
post #31

> PS: If you don't have an OLED screen, don't comment out autocmd ColorScheme * call OLED_Black() around line 1162. Instead, go buy an OLED screen! It's really worth it!! Interesting truth. Vivid colors, best response time, saves power in dark mode, #000 looks amazing (and off-black looks muddied). Honestly I wish we normalized true black themes for this reason.

Benefits of LCDs over OLEDs: less burn-in, can dim to low brightness without PWM (flicker noticeable with peripheral vision) or color degradation, no funky stuff with gray-to-black transitions, no limitation as to how much of the screen can hit peak brightness, no gray point uniformity or variance issues, etc.

From what I understand, iPhones are the best as far as panel quality goes, but even at those tiny sizes they are still full of shortcomings (see, e.g., https://www.xda-developers.com/apple-iphone-14-pro-max-displ...). Compared to a phone, my laptop’s screen is much larger, color reproduction is much more work-critical, and I stare at it for longer, so thanks but no thanks, I’ll stick with LCD.

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#54
post #27

Hey csdvrx, Have you written anywhere---or would care to expand here---why you have stuck with Vim over NeoVim? I ask because I have done the same. I made a couple of attempts to switch to nvim the last of which was abandon just over a month ago. Just curious! I have a very hard time articulating what I like more about Vim other than simply it just suits me better (which isn't an interesting answer).

> why you have stuck with Vim over NeoVim? Wow that's a very personal question! I'll try to answer the best I can! I like retrocomputing and hacking, especially for Christmas: I want to write things I can share, that'll mix old stuff and new stuff, and that will make people smile - call it the spirit of Christmas or whatever. My 2022 Christmas project was to write a web server in perl, exposing the whole C:\ drive, j…

> TBH I never really tried neovim, maybe because I like the start screen of vim? The idea of doing something for orphans may be cheezy, but I really like the message!

Ha, I like that! Personally I hide the home screen but I can get behind that and have donated to Vim before.

> Also why did you attempt to switch to neovim? I don't feel any limitation in vim. I'd be curious to know why you tried.

The first time years ago, was the try out the async stuff, then Vim got it so I switched back. The second time was very recently. I'm primarily a web developer and write a lot of Elixir. The Elixir community is rallied around NeoVim so the experience is quite a bit better. The maintainer of elixir.vim doesn't even write Elixir anymore (though he is very attentive to PRs and issues). I've contributed a bit to it, but ultimately I don't spend a lot of time hacking on Vim anymore (though I do have a todo item to update my vim plugins to make use of viml 9). At the same token, there is a bit of sunk cost fallacy going on in that I know VimL very well. I don't like the idea of having my config in two different languages nor do I like the idea of having to port my whole vimc config (which I know quite intimately) over to Lua. And ya, as you said, I feel no limitation in Vim other than the previously mentioned lack-of-Elixir support.

Oh ya, I was also convinced to try it out thanks to this talk [0]. Though, even as a quiet person myself, I found his speaking style very hard to take (but I powered through).

I'm actually aware of your Sixel project but never ended up trying it out. I've actually been following you on github for quite some time but---being primarily a web dev---often when I have to compile C on my mac I think "meh, I'll look into this later" and, of course, rarely come back to it. Not a very good reason, I know.

And ya, I kind of just switched to zsh years ago because it was "the thing to do". I do write enough shell scripts and never use any zsh-specific features, so I've been thinking of moving back to bash just to try it out again.

Thanks so much for your answer!

[0] https://www.youtube.com/watch?v=Bt-vmPC_-Ho

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#55
post #26

Earlier quoted context omitted.

As pointed out in other comments, the vimrc isn't really the key part of this project. Of course, calling these "sensible defaults" is maybe a bit antagonistic, even if it wasn't meant that way, and draws too much attention to it. I will say that the "tab" line is a super useful feature. For anyone not using it, look into it! Hint: you don't have to use it for tabs at all. It's a great place to stick any persistent i…

> Of course, calling these "sensible defaults" is maybe a bit antagonistic, even if it wasn't meant that way, and draws too much attention to it. It's a bit of a joke, it's intended to make you laugh like when I say to go buy an OLED screen instead of commenting out a specific line :) But TBH it's only half a joke: I think not supporting selection with Shift and Control+Shift+Arrows may drive intermediate users away.…

"antagonistic" wasn't the exact right word... like, the same word but less strong, lol.

> I think not supporting selection with Shift and Control+Shift+Arrows may drive intermediate users away.

I actually don't have anything like this to move words around! I use `]e` and `[e` from tpope's unimpaired [0] for moving lines around (I use tons from that plugin). I may toy around with some word-moving mappings.

I do agree with readline everywhere! I'm on mac and have it configured so readline works in all apps, lol. Again with the tpope plugins, vim-rsi is a great plugin and I very much agree with its premise: I love the stand vim bindings in command mode but when in some kind of "insert" mode, even outside of vim, I want readline!

[0] https://github.com/tpope/vim-unimpaired [1] https://github.com/tpope/vim-rsi

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#56
post #27

Hey csdvrx, Have you written anywhere---or would care to expand here---why you have stuck with Vim over NeoVim? I ask because I have done the same. I made a couple of attempts to switch to nvim the last of which was abandon just over a month ago. Just curious! I have a very hard time articulating what I like more about Vim other than simply it just suits me better (which isn't an interesting answer).

> why you have stuck with Vim over NeoVim? Wow that's a very personal question! I'll try to answer the best I can! I like retrocomputing and hacking, especially for Christmas: I want to write things I can share, that'll mix old stuff and new stuff, and that will make people smile - call it the spirit of Christmas or whatever. My 2022 Christmas project was to write a web server in perl, exposing the whole C:\ drive, j…

zsh isn't much less retro than bash is! They're, like, a year and a half apart; bash just has a special case of the GNU.

(It's wild to me that despite *gestures wildly*, zsh's release tarball is under half the size of bash's, though...)

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#57
post #39

Earlier quoted context omitted.

Anyway, if you want to lessen eyestrain, you want light mode. Light text on a dark background blooms more and makes it harder to distinguish the characters.

Well, I guess not many will agree with your statement, but I respect your opinion

I asked my optometrist about the best setting for viewing comfort, and she said black letters on white background. So I have that, except with a bit of tint, also following a theory that looking at certain colors affects moods.

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#58
post #57

Earlier quoted context omitted.

Well, I guess not many will agree with your statement, but I respect your opinion

I asked my optometrist about the best setting for viewing comfort, and she said black letters on white background. So I have that, except with a bit of tint, also following a theory that looking at certain colors affects moods.

>> Light text on a dark background blooms more and makes it harder to distinguish the characters.

> I asked my optometrist about the best setting for viewing comfort, and she said black letters on white background

I did some reading before I started using light themes, and the theory agrees with your optometrist, especially for astigmatism.

However, after getting an OLED screen, my experience didn't match the theory anymore: I could make the dark theme more comfortable with basic settings.

So I went back to check the research and I noticed it was not correctly controlling for ambient illumination and for the screen brightness.

I call that the 3 deltas:

- the 1st delta is between ambient brightness and the screen background color,

- the 2nd delta is between the screen background and the foreground color,

- the 3rd delta is between the ambient screen brightness and the screen foreground color.

In a dark room (at night), if you use a dark theme with a pitchblack background (as possible on an OLED screen) with a foreground of white text, it will NOT be comfortable if you leave the full brightness (usually 400 to 600 nits)

However, an OLED screen gives you precise control over the brightness: reduce it and you'll see it's possible to make the characters easier to distinguish on a dark theme than on a light theme.

I have scripts to do color inversion and different correction filters. I even have a shortcut for each, to reduce friction and try different settings for different conditions: I can go from a dark theme to a light theme in about 200ms, so I just go "click click click" on the keyboard until I find what conditions "clicks" with me :)

Unless I'm sitting in a very well light place (that I consider too bright for my preferences), I'm more often with the dark theme.

I'd encourage you to take into consideration the 3 deltas and try by yourself a dark theme while doing brightness control +- color filters, or at least to check the research (ask GPT!) your optometrist recommendation is based on.

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#59
post #27

Earlier quoted context omitted.

> why you have stuck with Vim over NeoVim? Wow that's a very personal question! I'll try to answer the best I can! I like retrocomputing and hacking, especially for Christmas: I want to write things I can share, that'll mix old stuff and new stuff, and that will make people smile - call it the spirit of Christmas or whatever. My 2022 Christmas project was to write a web server in perl, exposing the whole C:\ drive, j…

> TBH I never really tried neovim, maybe because I like the start screen of vim? The idea of doing something for orphans may be cheezy, but I really like the message! Ha, I like that! Personally I hide the home screen but I can get behind that and have donated to Vim before. > Also why did you attempt to switch to neovim? I don't feel any limitation in vim. I'd be curious to know why you tried. The first time years a…

> Thanks so much for your answer!

You're welcome!

I'll try to release more APEs for the sixel related projects because I'd like to make things like https://github.com/bytesnake/vim-graphical-preview/ more accessible.

A vim that'd use cosmopolitan binaries for the plugins would provide a solution without making everyone compile C code!

> The maintainer of elixir.vim doesn't even write Elixir anymore (though he is very attentive to PRs and issues). I've contributed a bit to it, but ultimately I don't spend a lot of time hacking on Vim anymore

If the community has moved to neovim and the maintainer of the vim package isn't writing in this language anymore, it may be hard to get a good "out of the box" experience with prepackaged solutions

But if the result you get still satisfies you, maybe it's not worth chasing what everyone else is doing with neovim? A minimal hacking around your working vim configuration could get you further, or at least fix your pain points enough to make everything else less important.

Also, you can't be certain that what the neovim elixir community find important, their pain points, will be identical to yours: hacking your own solution guarantees you'll be satisfied by it (because if you aren't, you can hack it some more :)

Re: Show HN: CuteVim – Portable Vim with a cute vimrc

#60
post #34

Earlier quoted context omitted.

That's the whole point of emacs; there is no point to vim, then.

That's not true. For many people Emacs' text editor is the least interesting part of it and use evil mode to get Vim-like bindings. While the jokes may lean on the differences in key-bindings, they are hardly the whole story. Vim is a super lightweight editor that is available everywhere and very easy to carry around your own single-file config. You're allowed to configure it however you want. Vim too has its share o…

The point of vim is to be vi but with more features.

It's not to configure it however you dang well please.

If this were the point, which it isn't, you could use emacs, which can be configured in vastly more dang ways. Including ways which are a superset of vi, as you yourself admit.

Post reply on HN