April 5, 2023

Pipe Into Vim

You can pipe stuff stuff into vim. I didn’t know about this, but take a look at the second usage example in the output of vim -h: ~ $ vim -h VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jan 29 2023 18:57:15) Usage: vim [arguments] [file ..] edit specified file(s) or: vim [arguments] - read text from stdin or: vim [arguments] -t tag edit file where tag is defined or: vim [arguments] -q [errorfile] edit file with first error Just pass - to open up a new buffer with the output of something. Read more

March 1, 2023

Summing Stuff

I needed to sum up some shopping expenses. It looked like a problem that should have already been solved, so using a search engine I stumbled upon this Stack-Overflow question’s answers. I’ve found it really smart and simple, so I thought to write something in here. The answers are pretty good explaining in details how the thing works, and of course you can always use man to know more about a program you don’t know, especially with standard commands like cut or paste. Read more

© Mauro Scomparin 2020 - 2023

Powered by Hugo & Kiss.