This is an automated archive made by the Lemmit Bot.

The original was posted on /r/neovim by /u/duqcyxwd_happycoding on 2025-09-21 19:12:38+00:00.


Hey folks 👋 I really hate juggling escapes inside strings (", \n, etc.), so I hacked this: stringbreaker.nvim.

I found it super useful when editing my prompts (templates in code/JSON) — I just edit the clean text and let the plugin deal with escaping

What it does

Opens the string (or your visual selection) in a temp buffer unescaped → you edit like a normal human → it writes back with proper escaping.

How to use

  • Cursor on a string → :BreakString and → :SaveString when you are done

https://i.redd.it/lotmoflhhkqf1.gif

Repo

https://github.com/duqcyxwd/stringbreaker.nvim

Feedback & weird edge cases welcome—especially from folks who also edit prompt templates a lot. Cheers!