Skip to content
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

consider to set nomodeline #20

Open
rene-descartes2021 opened this issue Sep 1, 2021 · 0 comments
Open

consider to set nomodeline #20

rene-descartes2021 opened this issue Sep 1, 2021 · 0 comments

Comments

@rene-descartes2021
Copy link
Contributor

Debian and Ubuntu set nomodeline by default, but this plugin sets modeline implicitly (Vim default) via set nocompatible. I've been using space-vim and have narrowed it down to this line in this plugin where modeline is being set.

The vim help for compatible says "NOTE: Setting or resetting this option can have a lot of unexpected effects". This looks like one of those unexpected effects.

Consider set nomodeline after set nocompatible.

Here is a discussion on nomodeline on a similar "vim defaults" plugin. I expect there is no security vulnerability after vim8.1 but I wrote this issue for you to consider. Perhaps as a peace-of-mind kind of thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant