Stop the war!

Stop the war in Ukraine! Fuck putin!

More information is at:

There is a fund to support the Ukrainian Army:, and there is a special bank account that accepts funds in multiple currencies: I donated to them. Please donate if you can!

Killer putin

Killer putin. Source:

Arrested putin

"It hasn't happened yet, but it will happen sooner or later. Beautiful photo, isn't it?" Source: twitter.

Uppercase replaced text in vim

| comments

I tell you what, vim is no doubts an awesome text editor! You can do tons of stuff with it very fast. This post is a quick note how to make some text uppercase in the search-replace command.

An example first. Suppose we have a list in markdown (and it’s much much longer):

* Item 1
* Awesome list item 2
* The end

and we need to uppercase the first word of each item’s title. As we have a lot of these lines, the manual job of uppercasing is very boring and monotonous. Besides, any true programmer/admin/geek strives to automate everything she can. Thus, typing :%s/^\* \(\w\+\)/* \U\1/g will do the trick:

* ITEM 1
* AWESOME list item 2
* THE end

The key part here is the usage of \U modifier in the replace string, which will uppercase all the text that’s followed to the end of line or until \E. To find out more type :h sub-replace-special.


Note: The comments in the blog are provided by; if you don't see the comment form under the post, probably your browser or its extension (such as uBlock Origin or NoScript) blocks their scripts.

« Git SSH Keys on Windows jmp »