You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the main README, it's the following autocmd is suggested to update the packer_compiled.vim file to avoid the tedium of reloading the file and running the PackerCompile command:
This works with a simple write, but if you do a write and quite immediately with :wq, the asynchronous PackerCompile command never completes it's operation and nothing gets saved. I created a simple hack to the autocmd as a workaround:
This inserts a 50 ms delay which should be plenty of time for PackerCompile to do its thing.
Not sure if there is a more robust way or not. But documentation should probably mention the problem. I lost quite a bit of time trying to figure out why it wasn't working.
Also, another thing that tripped me up is that the save wasn't working if I edited the file from outside of the plugins directory. This problem can be avoided by throwing */ in front of the file name:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the main README, it's the following autocmd is suggested to update the
packer_compiled.vim
file to avoid the tedium of reloading the file and running thePackerCompile
command:This works with a simple write, but if you do a write and quite immediately with
:wq
, the asynchronousPackerCompile
command never completes it's operation and nothing gets saved. I created a simple hack to the autocmd as a workaround:This inserts a 50 ms delay which should be plenty of time for PackerCompile to do its thing.
Not sure if there is a more robust way or not. But documentation should probably mention the problem. I lost quite a bit of time trying to figure out why it wasn't working.
Also, another thing that tripped me up is that the save wasn't working if I edited the file from outside of the plugins directory. This problem can be avoided by throwing
*/
in front of the file name:Would probably be a good idea to change that in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions