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

Improved loading sequence #222

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Improved loading sequence #222

wants to merge 7 commits into from

Conversation

mikew
Copy link
Contributor

@mikew mikew commented Mar 8, 2016

This does a few things:

  1. Launches neovim with -u Neovim.app/Resources/nvimrc, unless specified already by the command line
  2. Adds Neovim.app/Resources/runtime/after to the runtimepath so that ...
  3. ginit.vim is sourced

I tried doing mVim->vim_command("so ~/.config/nvim/init.vim");, but it happens too late in the startup and some autocmds weren't working.

@rogual
Copy link
Owner

rogual commented Mar 8, 2016

@kopischke is right about the paths.

Also, what problem is this solving? Is it just to load ginit.vim? And why is -u nvimrc necessary?

@mikew
Copy link
Contributor Author

mikew commented Mar 8, 2016

It's to stop reloading $MYVIMRC, and to load ginit.vim yeah. After further testing, it seems -u nvimrc is not needed, I was just using it to get 100% control of the startup sequence. But the runtime/after/ stuff is still needed to source ginit.vim at the right time.

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

Successfully merging this pull request may close these issues.

None yet

2 participants