dmh

joined 1 year ago
[–] [email protected] 3 points 1 year ago

On terminals? like what?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

I use something simpler in my config that runs on BufWritePost:

silent !svgo %

I wrote that right after reading this koan:

Master Wq and the Markdown acolyte

A Markdown acolyte came to Master Wq to demonstrate his Vim plugin.

“See, master,” he said, “I have nearly finished the Vim macros that translate Markdown into HTML. My functions interweave, my parser is a paragon of efficiency, and the results nearly flawless. I daresay I have mastered Vimscript, and my work will validate Vim as a modern editor for the enlightened developer! Have I done rightly?”

Master Wq read the acolyte’s code for several minutes without saying anything. Then he opened a Markdown document, and typed:

:%!markdown

HTML filled the buffer instantly. The acolyte began to cry.

https://blog.sanctum.geek.nz/vim-koans/

[–] [email protected] 1 points 1 year ago (1 children)

I use a variation of that setup, I install plain neovim as a package, and symlink the neovim config: https://github.com/davidmh/dot-files/blob/main/home.nix#L115-L118

Mostly because I want to manage the neovim plugins with lazy.nvim, not with nix derivations.