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

There is no way to intercept *before* loading Vim runtime files #308

Open
tyru opened this issue Jan 6, 2020 · 1 comment
Open

There is no way to intercept *before* loading Vim runtime files #308

tyru opened this issue Jan 6, 2020 · 1 comment

Comments

@tyru
Copy link
Member

tyru commented Jan 6, 2020

I use https://github.com/itchyny/vim-parenmatch instead of Vim default matchparen.vim,
because it is x8 faster than the default.

I want to write let g:loaded_matchparen = 1 in plugconf file (not vimrc), but bundled plugconf file is loaded after Vim runtime files are loaded.
I need a way to execute Vim script before loading runtime files.
But it must be intrusive feature, because it cannot achieve while depending on Vim packages feature.

@tyru
Copy link
Member Author

tyru commented Jan 6, 2020

First idea

Write

packadd volt_sys
call volt_sys#init()

in user's vimrc and execute pre-scripts.

But this idea breaks zero configuration !!!

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

No branches or pull requests

1 participant