oliverdavies.uk/source/_posts/31.md
Oliver Davies 2c517f1d39 Move zet notes to blog posts
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-09-10 18:36:36 +01:00

500 B

title date tags note permalink
Using Vim filters 2025-07-12 23:13:54
vim
true /notes/31-using-vim-filters

In Vim, insert some text into a file, such as date.

In insert mode, press !! to switch to command mode and see a :.! prompt.

Enter a command, like bash to execute on the given text.

The text is replaced with the result from the command - Sat Jul 12 23:16:29 BST 2025.

This also works for other commands, such as typing 1+2+3 and running :.!bc will return 6.