Correct typos with overuse of backslashes. #181
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After testing the code examples in a vimscript I was writing, I was able to determine that multiple backslashes were not necessary and actually led to vim misinterpreting the
try
/catch
blocks I was implementing based on this information.For example, when I used this
vim would never catch the error when I would intentionally setup the script to trigger the error. When I reviewed
:h :catch
I noticed that it does not have those same backslashes present.I removed the additional backslashes matching what's in
:h :catch
.When I made this change vim correctly caught the error and execution of the script worked as intended.
This mistake appears to also be present on this website.
I'm unsure if the owner of that site is the same as the author of this repository, but if they are, they should correct it there as well. I could see this kind of mistake tripping up new users learning about vim and it would very unfortunate for a website that does such an excellent job presenting this information to create confusion for users reading it.