Vim repeat a redo action

I was altering some code in Vim a little while ago. I had recently undone some warnings because I thought I didn’t need them any more. It turned out that I did. I started typing :redo :redo :redo and the changes were coming back gradually, but it was a pain to type the command each time.

In Vim the ‘.’ key repeats the last action, so I figured it would save me a lot of time to just press that instead. Bad idea! The ‘.’ character will not repeat the :redo command, it will repeat the action that the :redo caused. So if :redo inserted some text then pressing ‘.’ will cause that same section of text to be inserted again.

This is not only a bit annoying, but also causes a divergence from the history meaning you can no longer use :redo to get back to where you were going. 🙁

A useful shortcut for redo in Vim is Ctrl-r. I’m slowly becoming less of a Vim n00b.

Now I better get back to typing in all of my warns.

Mortgages and stuff

For the last week or so I’ve been chasing around after the bank and my solicitor to try to keep them on their toes so that the mortgage and house can finally be transferred into just my name.

It’s not been particularly stressful so far, just expensive. It’s going to come to somewhere in the region of £600 which doesn’t include the £150 fee that Natwest will add onto the mortgage amount. I’m hoping the whole thing can be sorted in the next week or two. Lizz has had an offer accepted on a new place, so it seems silly that she should still be on pieces of paper linking her to Crown Street. Luckily I believe the mortgage has already been changed, but I don’t know if that counts for anything before I’ve filled out some forms for the new mortgage.

I’d just like to take a moment to say how absolutely brilliant it has been to use Natwest’s free callback service. I put my phone number in, say I want a phone call in so many minutes and they call me. It saves me looking all over the Internet for an outdated 01 or 02 number that I can call from my mobile phone. Thanks Natwest. 🙂

So yeah, that’s what I’m doing with my life at the moment. Exciting stuff, huh?

Swine flu backlash

Just as I thought would happen when I wrote this blog post people have begun to say swine flu was a hoax by the large medical companies to make a load of money from vaccinations.

Why doesn’t anybody think that perhaps all the vaccinations people had prevented the situation from being far worse than it has been? Has everyone forgotten the quickly rising numbers of confirmed cases in the early stages?

Of course, I’m open to the suggestion that it could have all been hype from evil medical corporations run by heartless, unseen billionaires who want people to die so they could make a few more dollars, but it seems a little far-fetched. Too much like a plot from a bad movie. I believe the simpler theory is that the vaccination worked. Enough people were immunised against the virus and so it was stopped, or at least slowed. Occam’s razor. 😉

Twenty Ten!

Yay, it’s the future now! Twenty-ten has started.

I spent New Year’s eve in Mansfield town centre with Dave, Hayley, Katy, Ryan, etc. We started the night at Ryan’s house for the first couple, and then headed to The Mill. Everyone was in a good mood and looking forward to the rest of the night. So after a few more drinks we headed into town to Wetherspoons.

Drinks flowed for a while and then Len came to meet us. Other people left to go to The Mill as I had made everyone promise to do, but I stayed with Len in Wetherspoons instead. We saw the new year in there with some other people and then headed into Liquid for the remainder of the night.

It was a good night overall, and I was very pleased to get to bed, even though it was getting light by the time I got to sleep!