Paolo Redaelli personal blog

Author: Paolo Redaelli

Adding parenthesis around highlighted text in Vim

Lovely, lovely vim The command c()<Esc>P Explanation If you want to put the word under the cursor in to brackets this is viwc()<Esc>P. viw will visually select all charactrs in a word. c() will cchange the selection and drops you into insert mode, where you type the literal characters ( ). Also, c automatically copies…

My little printer-friendly CSS

Here is my little “Printer friendly CSS” that I add to each and every page using Simple Custom CSS and JS I use it with News-box theme but it should work fine with any other “pretty modern” theme. I started reading How to Create Printer-friendly Pages with CSS (local copy)

Avete taciuto abbastanza. È ora di finirla di stare zitti!Gridate con centomila lingue!Io vedo che, a forza di silenzio, il mondo è marcito! S. Caterina da Siena

This css one liner can define how your site looks on a device with dark mode set in the browser settings.

@media (prefers-color-scheme: dark)

Or if your main style is dark mode, you can define how the light mode will look.

@media (prefers-color-scheme: light)
Source: CSS only dark mode without JS – Simon Dalvai