Published

All published posts

2717 posts latest post 2026-11-11
Publishing rhythm
Oct 2026 | 30 posts

Vim Wsl Clipboard

I’ve long used neovim from within windows wsl, and for far too long, I went without a proper way to get text out of it and into windows. wsl has access to cmd applications wsl can access clip.exe. You can do some cool things with it, such as cat a file into the clipboard, sending output from a command to the clipboard, or set an autocmd group in vim to send yank to the windows clipboard. using clip.exe Let’s say you want to send a teammate the tail of a log file over chat. You can tail the file into clip.exe. pipe streams of text into clip.exe make it a bit more natural I recently made mine feel a bit more natural by aliasing it to clip. pop this in your ~/.bashrc or ~/.zshrc yanking to windows clipboard from vim I use neovim as my daily text editor and its a pain to share code with a teammate over chat, stack overflow, into a gist, or whatever you need. The following snippet has been quite useful and flawless for me. add this to your ~/.vimrc or your ~/.config/nvim/init.vim Wsl2 Based…
Check out bidict by jab. It’s a well-crafted project with great potential. The bidirectional mapping library for Python.
I’m really excited about lolcat, an amazing project by tehmaze. It’s worth exploring! Rainbows and unicorns (without Ruby! jay!)
plenary.nvim by nvim-lua is a game-changer in its space. Excited to see how it evolves. plenary: full; complete; entire; absolute; unqualified. All the lua functions I don’t want to write twice.

Pytest capsys

Testing print/log statements in pytest can be a bit tricky, capsys makes it super easy, but I often struggle to find it. capsys capsys is a builtin pytest fixture that can be passed into any test to capture stdin/stdout. For a more comprehensive description check out the docs on capsys using capsys Simply create a test function that accepts capsys as an argument and pytest will give you a capsys opject.
1 min read