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

Change plug.vim file path to ~/.cache/space-vim/site/autoload/plug.vim #509

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion core/autoload/spacevim.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
scriptencoding utf-8


let g:spacevim.info = g:spacevim.base. '/core/autoload/spacevim/info.vim'
let g:spacevim.layers_base = '/layers'
let g:spacevim.private_base = '/private'
Expand Down Expand Up @@ -40,7 +41,9 @@ function! spacevim#begin() abort
endfunction

function! s:check_vim_plug() abort
let l:plug_path = g:spacevim.nvim ? '~/.local/share/nvim/site/autoload/plug.vim' : '~/.vim/autoload/plug.vim'
"let l:plug_path = g:spacevim.nvim ? '~/.local/share/nvim/site/autoload/plug.vim' : '~/.vim/autoload/plug.vim'
"let l:plug_path = '~/.cache/space-vim/site/autoload/plug.vim'
let l:plug_path = g:spacevim_plugvim_filepath
if empty(glob(l:plug_path)) | call spacevim#vim#plug#download(l:plug_path) | endif
endfunction

Expand Down
4 changes: 3 additions & 1 deletion init.spacevim
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
" Comment the following line if you don't want Vim and NeoVim to share the
" same plugin download directory.
let g:spacevim_plug_home = '~/.vim/plugged'
"let g:spacevim_plug_home = '~/.vim/plugged'
"let g:spacevim_plug_home = '~/.cache/space-vim/plug'
let g:spacevim_plug_home = g:spacevim_plugvim_cachepath . '/plug'

" Uncomment the following line to override the leader key. The default value is space key "<\Space>".
" let g:spacevim_leader = "<\Space>"
Expand Down
21 changes: 21 additions & 0 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,27 @@ if g:spacevim.os.windows
endif
" }


""
"" core runtimepath
""

let &runtimepath = &runtimepath . ',' . g:spacevim.base . '/core'


""
"" plug.vim runtimepath
""

let g:spacevim_plugvim_cachepath = '~/.cache/space-vim'
let g:spacevim_plugvim_runtimepath = g:spacevim_plugvim_cachepath . '/site'
let g:spacevim_plugvim_filepath = g:spacevim_plugvim_runtimepath . '/autoload/plug.vim'

let &runtimepath = g:spacevim_plugvim_runtimepath . ',' . &runtimepath


""
"" bootstrap
""

call spacevim#bootstrap()