💻 Software
vim: Continue macro after error in submacro?
Fresh5 days ago
Mar 15, 20266972 viewsConfidence Score0%
0%
Problem
I'm in the process of beautifying some source code using vim. {1} I've created a couple of vim macros that do the individual steps: removing trailing whilespace, removing empty lines after , removing empty lines before , that kind of stuff. Now, I want to create a macro that executes all the indivi…
Error Output
{Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: vim: Continue macro after error in submacro?
Low Risk
If the failing command is a substitution that isn't finding its pattern, e.g., when doesn't exist in the buffer, you can add the flag to ignore that error, e.g., See You can tell Vim to ignore the errors from some :ex commands by preceding them with…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix