I want to split up my
.vimrc into multiple files by language or toolchain, use case, etc.
In fact, my end goal is to be able to provide instructions to students in the format of "If you want the same settings I have, just do this:
curl https://example.com/vim/foobar.vim -o ~/.vim/xxxxx/foobar.vim".
I know that as of vim 8 we can now use
~/.vim/pack/XXXX/start/ to put plugins without requiring a 3rd party loader. However, when I tried moving some of the things from my
.vimrc there as
~/.vim/pack/plugins/start/go.vim (my settings for golang) it didn't seem to load my settings anymore, even though I had
packloadall in my
Is it possible to drop a file into a folder and have it load? Do I need to declare what it depends on in some way?
I'm aware of Is it possible and useful to split vimrc?, but that doesn't seem to address the new features of vim 8.
I'm looking to find a solution that doesn't require additional manual edits to
.vimrc, and I believe that with vim 8 such a thing exists.