aliquote.org

Latest micro-posts

You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.

2023-10-27 20:15 #

Everything you ever wanted to know on how to execute a command in multiple files in Vim. I mostly use argo and cdo. #vim

2023-10-27 20:14 #

TIL that there are some interesting C programming tips on Neovim wiki. #vim #clang

2023-10-26 21:18 #

No more nvim-lspconfig means 15 ms less time spent in starting up! #vim

img

2023-10-24 21:37 #

TIL that you can clear your Tmux paste buffers by tagging everything (C-t) then deleting it (D).

2023-10-24 13:46 #

Pytest is really great: even simple assert statements get processed, no need to write complex fixtures or test suite. This means you can write your scripts as usual and just import pytest. To avoid contaminating your current directory with __pycache__ and .pytest_cache directories, set the exported variable PYTHONDONTWRITEBYTECODE=1 and call pytest with -p no:cacheprovider. You can set a simple compiler and errorformat for (Neo)vim by following this blog post. Personally, I use makeprg=pytest\ --tb=short\ -vv\ --no-header\ -p\ no:cacheprovider\ $* instead. #python #vim

2023-10-24 13:44 #

If you are using vimtex and are interested in using Evince for forward/reverse synchronization, be sure to check sved which at least provides reverse sync in Neovim. Otherwise, Zathura works as expected. #vim

2023-10-24 09:12 #

Ergonomic mappings for code formatting in Vim: Very nice tutorial on code formatting and how to write VimL functions that exploit gq. #vim

2023-10-23 15:43 #
2023-10-23 15:29 #

But let’s just put it this way (and here I’m being charitable): in all my years of using Word, this happened more than once. In all the time I’ve used text editors, it’s never happened, even once. — Why (and How) I Wrote My Academic Book in Plain Text