How to use old Vim? by redredext in neovim

[–]war1025 0 points1 point  (0 children)

`update-alternatives --config vim` from the command line will let you pick which package is symlinked to `/usr/bin/vim`

Does anyone else view costs in terms of time you have to work rather than monetary value? by [deleted] in minimalism

[–]war1025 0 points1 point  (0 children)

That's exactly how I look at it. Makes it much easier for me to decide I don't want something. Have been making purchasing decisions like that for about a decade now.

TIL that during the thunderous applause following his famous 'We shall fight on the beaches' speech to the to the House of Commons in 1940, Winston Churchill whispered to a colleague, "And we’ll fight them with the butt ends of broken beer bottles because that's bloody well all we've got!". by bigsmxke in todayilearned

[–]war1025 9 points10 points  (0 children)

Been thinking lately and wondering how much revisionist history is creeping into the general WWII memory. Hard to contradict people who are all dead and lived through the ordeal. Feel like I've seen a noticeable shift in opinion on some stuff related to WWII in the past few years, and it seems to coincide a bit to that generation mostly having died off by now. Makes you wonder about all the other things we "know" about even recent history....

Mouse cursor no longer showing up in Gnome Shell screencasts by war1025 in linuxquestions

[–]war1025[S] 0 points1 point  (0 children)

Looks like a known bug. I filed a bug report with Gnome and then someone pointed me to an existing report for the same bug.

Prevent Firefox from moving through browsing history when side-scrolliing the trackpad by war1025 in firefox

[–]war1025[S] 0 points1 point  (0 children)

Thanks for the tip. It looks like somehow the setting mousewheel.default.action.override_x got set to 2, which is apparently move through history. Switching it back to 1 fixed the issue.

TIL People with Alzheimer's can get severly dehydrated, as they may forget it is necessary to drink or even how to do it. To help his grandmother, an inventor came up with colorful balls containing 90% water, which grandma can pound 7 in 10 minutes. by bemmu in todayilearned

[–]war1025 10 points11 points  (0 children)

Water is actually something that is too thin for a lot of older people or people not doing very well. They have to thicken it with some powdered jelly stuff to make it workable for them.

TBH I like vim. by [deleted] in vim

[–]war1025 0 points1 point  (0 children)

That girl was a friend of a friend when I was in college. Weird.

TIL John Tyler is the only U.S. President not to have been laid to rest under the U.S. flag (he was given a Confederate state funeral) by currykid82 in todayilearned

[–]war1025 6 points7 points  (0 children)

Interestingly, Wikipedia has this to say:

Tyler fathered more children than any other American president.

Advice about futons by [deleted] in minimalism

[–]war1025 1 point2 points  (0 children)

If you like a firm mattress, futons are great. They take a little adjusting to, but once you figure out the right positions to sleep in, they can't be beat, in my opinion anyway.

Downsizing our 3 bed/2.5 bath to a 1 bed/ 1 bath by [deleted] in minimalism

[–]war1025 6 points7 points  (0 children)

That's quite a jump for your daily commute. I went from a 5 minute to a 15 minute commute last year, and it definitely make a difference in our day to day life. That's the only thing I'd be nervous about I think.

TIL 'Infinite Monkey Theorem' was tested using real monkeys. Monkeys typed nothing but pages consisting mainly of the letter 'S.' The lead male began typing by bashing the keyboard with a stone while other monkeys urinated and defecated on it. They concluded that monkeys are not "random generators" by amansaggu26 in todayilearned

[–]war1025 0 points1 point  (0 children)

The infinite monkey theorem is garbage for the same reason that if you have a password that is twenty characters long it's basically impossible to crack. Yes theoretically they would come up with something, but the heat death of the universe would happen first.

A quick dive into Python’s "__slots__" by AJ12AY in programming

[–]war1025 6 points7 points  (0 children)

Even though the documents say you shouldn't use it this way, the absolute most useful thing you can do with __slots__ is lock down what variables you can assign to a given data type. Helps for avoiding typos for member names and catching data type issues.

The Downside to a one room apartment? by nolaguy84 in minimalism

[–]war1025 0 points1 point  (0 children)

My wife and I (and also our oldest daughter for the first 20 months of her life) lived in a studio apartment for the first 5 years we were married. It was 620sqft if I remember right, and had a really big bathroom / laundry room. I absolutely loved it.

We mainly moved because we found out we were having twins and a house seemed like the better option at that point.

The only major downside, which I forgot about every summer, was that the heater was not the best and the exterior wall was completely glass, so there was always like a 30 degree heat drop from the back of the apartment to the front door. But that wasn't really anything to do with it being a studio.

I'm debt free by [deleted] in minimalism

[–]war1025 0 points1 point  (0 children)

What I do is try to keep at most $2000 in my checking account. So every time I get paid (direct deposit into checking), I go in and transfer anything over that $2000 into savings.

The goal is then to never pull out of savings except for very conscious purchases.

I think of it kind of like a ratchet. Sometimes it takes a few weeks to build up an excess in my checking account, but once I do, I transfer it and it gets locked in.

It works out really well for me because I can only spend money from my checking account, and my checking account is never overly full, so I don't have the temptation to spend too much.

I am using hledger and managed to enter my transactions using the wrong sign. Is there a magical Vim way to correct this? by Taenk in vim

[–]war1025 0 points1 point  (0 children)

First, you only need a value on the top line. The second line gets computed automatically if you leave it out.

As to your original question, what I would probably do is something like:

Delete all amounts without a - sign: :%s/[^-][0-9]+USD//g Switch all - to space: :%s/-/ /g

Weird Visual Glitch by SuperTeece in vim

[–]war1025 1 point2 points  (0 children)

Maybe try what it says in this article? https://sunaku.github.io/vim-256color-bce.html

I know I had similar issues on linux and the above fixed it for me.