Skip to content

Add note about Vim "magic" mode #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2024
Merged

Add note about Vim "magic" mode #29

merged 2 commits into from
May 22, 2024

Conversation

remram44
Copy link
Owner

Fixes #28

cc @Bigcrow: let me know what you think

@CabalCrow
Copy link

I wouldn't say magic is recommended. It is good for quick searches, but not for more complex regexes - then you def want \v. So you could just leave it as default without specifying if it is recomended or not.

Otherwise it looks good 👍

@remram44
Copy link
Owner Author

I got that from the Vim docs link:

It is recommended to always keep the 'magic' option at the default setting, which is 'magic'. This avoids portability problems.

@CabalCrow
Copy link

CabalCrow commented May 19, 2024

Oh, yeah. It is recommended & good to keep the 'magic' option as the DEFAULT setting. But when actually writing regexes you can switch modes inline via flags (\v \V \m \M). So for writing regexes itself I would say it is not recommended, but as an option within the editor - yes.

@remram44 remram44 merged commit e9f73ef into master May 22, 2024
2 checks passed
@remram44 remram44 deleted the vim-magic branch May 22, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default magic for vim.
2 participants