Post #1840923
2026-04-23 13:50 UTC
🔥 Vim tip
Do you know the :s (substitute) command? Of course you do!
:s/old/new
But did you know that any single-byte character works as a pattern delimiter? This is so useful when you replace paths that contain the `/` character. No more escapes!
Example:
:s,some/path,another/one
Docs:
:h pattern-delimiter
#vim #neovim
Replies (1)
-
@meeper@udongein.xyz 2026-04-26 13:07
@pawelgrzybek@mastodon.social also just plain sed in gneral