dein#addto add a plugin "properly"
I cannot reproduce it anyway as it's gone after the upgrade, so it looks indeed like an issue of neocomplete that got solved by either upgrading it or by recaching
s/minimal plugins/minimal configurations/
vim-plug, and I put all my plugins at
~/.vimis actually a symlink to a synced directory in my Dropbox, so that the whole vim configuration is synced. I continued this habit when started using dein, but I found the configuration if often broken when I have synced between different OS'es, e.g., between Linux and macOS. Then I checked the
cache_*file in dein's directory and found dein records absolute paths in its cache, so that the paths are broken between different OS'es, e.g., on Linux it may be
/home/username/.vim/dein/.cacheand macOS it may be
/Users/username/.vim/dein/.cache. I read the doc and it says the typical directory for dein is
~/.local/share/dein. So does that mean the correct use of dein is to put its directory at some OS-specific path, which should not be synced? As a result, do we have to
:call dein#update()when setting up the vim configuration for a new computer? Thank you!
vim-plug, I have to clone several copies for YouCompleteMe and rename them to different names, and pick a specific name on specific OS. I wrote a long function doing all those. With caching, I just need to keep only one copy of the original YouCompleteMe repo at
~/.vim/dein/repoand cache it to
~/.cache/dein, which is a OS-specific path. I don't need to care about the directory names anymore, and the long function is no longer necessary.
hook_post_updatedict entry are only correctly installed for the first time. After the vim restarted,
dein#load_state()returns 0 and the hooks are not loaded for the plugins, so no hooks will be called for
dein#update(). Does that mean I have to call