I am using the “:s” substitute command in a mapping. When a search…
…for a pattern fails, the map terminates. I would like the map to continue processing the next command, even if the substitute command fails. How do I do this?
You can use the ‘e’ flag to the substitute command to continue processing other commands in a map, when a pattern is not found.
Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.
Introduction to Recursion and Backtracking