While emacs is clearly the right editor to use, vim sometimes
comes came up handy for quick edit of system config files (most of the time with sudo). The emacs philosophy of being it’s own operating system that’s you never leave doesn’t gel too well with switching to root.
Ever had an emacs command mysteriously failing? That happened to me yesterday on a
org-publish-project command that was failing with a cryptic message. It was on 5-6 org files with some more than 6000 lines… No way to go through these manually to spot the error.
Sometimes, I reach the limit of what I can do with a line of
find | grep | sed and all the
\/\/$.*()\/\/ that goes in… Write once, never come back. It almost look like perl sometimes…
When playing with csv files today, I discovered two very useful function:
The first one is
M-x keep-lines that allow to remove all the lines that I don’t care about.