Gabirel / Hack-SpaceVim

🚀 Tell you how to hack SpaceVim. Be useful. Try Discussions!
MIT License
478 stars 68 forks source link

Instructions For Installing SpaceVim - OFFLINE #12

Closed Gabirel closed 7 years ago

Gabirel commented 7 years ago

Some people maybe have no connection to the Internet.(Yeah, a lot of people)

So, they need a post to teach them how to install SpaceVim FASTER , SAFELY and OFFLINE, including on Windows and Linux.

Gabirel commented 7 years ago

Finished in https://github.com/Gabirel/Hack-SpaceVim/commit/915875d48032457e8b7e6f0706e73ceea8497709

haomeng689 commented 6 years ago

I find a spacevim package for offline installation. However, there are many tar errors when extracting the tar file. Are there any solutions?

Gabirel commented 6 years ago
  1. You can still use TAR in GUI to extract it.

Or, you can pack it by yourself. After all, that version I've packed is too old to use. So I highly recommend you to pack it up. More details: Here

  1. I will try my best to fix the offline package later. Thanks for your feedback.
TamaMcGlinn commented 4 years ago

What about updating spacevim and plugins after installation? Ideally, we would want to: 1) Get the latest commit hashes available on the offline machine 2) Using those, generate git bundle files containing only the new commits, so that we have minimal file(s) to transfer to the offline machine 3) Update using these bundle files

I would imagine this should be implemented as a spacevim layer, with step 1 generating a script to be run on the online machine. Because it operates on git bundle files, it would allow updating an offline windows machine using an online linux machine or any other configuration of different OS'es.

Gabirel commented 4 years ago

@TamaMcGlinn

  1. Nice idea to use git bundle for incremental updates. This gives me a lot of thinking about it. I'll add this idea into docs later for others' reference. (Or you can create PR if you want.)
  2. Currently, generating bundle files created via git bundle as one independent layer is almost impossible for SpaceVim.

There are two reasons for the number2:

Maybe for offline users, they need to consider writing scripts to maintain incremental updates.

changyonggang commented 2 years ago

after offline installed, the problem is plugin updating, but my computer cannot visit internet. what can i do ? i want use spacevim in offline mode. ![Uploading image.png…]()

TamaMcGlinn commented 2 years ago

@changyonggang I used to solve that problem simply by installing the exact some config on another computer that can visit the internet, and zipping up the ~/.vim/plugged directory after updating, and replacing the one on the offline computer.

What I was suggesting is a more efficient way of doing that - I used to have to move gigabytes of plugins, so I would only do it every few months.

Gabirel commented 2 years ago

after offline installed, the problem is plugin updating, but my computer cannot visit internet. what can i do ? i want use spacevim in offline mode.

@changyonggang

  1. I cannot confirm this problem since your screenshot has failed to be uploaded.
  2. Normally, SpaceVim wouldn't update automatically if you set it up correctly. That includes the full installation of SpaceVim itself and all plugins you may need as well.