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

Don't set global options #1

Open
garious opened this issue Jan 18, 2015 · 0 comments
Open

Don't set global options #1

garious opened this issue Jan 18, 2015 · 0 comments

Comments

@garious
Copy link
Owner

garious commented Jan 18, 2015

Per Sergey Dmitrouk:

Unfortunately, just moving files around isn't enough. Sample vimrc
can't be turned into a plugin that easily. The problem with such setup is
that plugin sets global options and even runs set nocompatible, which
silently resets a bunch of options even if 'compatible' is already "off".

The proper way of doing this would be factoring that file into smaller
ones (filetype detection plugin, filetype plugin) and ensuring that options
that are left in the plugin affect only buffers of LLVM tree (by using
:setlocal and matching file path or requiring secondary file type like in
"cpp.llvm").

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