mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
Escape space in rtp (#4423)
This commit is contained in:
parent
6b633d9d7f
commit
d7ccf9370c
7
main.vim
7
main.vim
@ -11,9 +11,10 @@ if has('vim_starting')
|
||||
" set default encoding to utf-8
|
||||
|
||||
" Let Vim use utf-8 internally, because many scripts require this
|
||||
exe 'set encoding=utf-8'
|
||||
set encoding=utf-8
|
||||
scriptencoding utf-8
|
||||
if &compatible
|
||||
" compatible mode is not supported in SpaceVim
|
||||
set nocompatible
|
||||
endif
|
||||
" python host
|
||||
@ -49,9 +50,9 @@ else
|
||||
return resolve(a:path)
|
||||
endfunction
|
||||
endif
|
||||
let g:_spacevim_root_dir = fnamemodify(s:resolve(fnamemodify(expand('<sfile>'),
|
||||
let g:_spacevim_root_dir = escape(fnamemodify(s:resolve(fnamemodify(expand('<sfile>'),
|
||||
\ ':p:h:gs?\\?'.((has('win16') || has('win32')
|
||||
\ || has('win64'))?'\':'/') . '?')), ':p:gs?[\\/]?/?')
|
||||
\ || has('win64'))?'\':'/') . '?')), ':p:gs?[\\/]?/?'), ' ')
|
||||
lockvar g:_spacevim_root_dir
|
||||
if has('nvim')
|
||||
let s:qtdir = split(&rtp, ',')[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user