1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:40:05 +08:00

Fix vim error

This commit is contained in:
wsdjeg 2017-11-08 21:49:09 +08:00
parent c8dfcc4745
commit 4fc14287f9

View File

@ -13,11 +13,13 @@ function! SpaceVim#server#connect()
if empty($SPACEVIM_SERVER_ADDRESS)
let $SPACEVIM_SERVER_ADDRESS = fnamemodify('~/.cache/SpaceVim/server', ':p')
endif
if has('nvim')
try
call serverstart($SPACEVIM_SERVER_ADDRESS)
call SpaceVim#logger#info('SpaceVim server startup at:' . $SPACEVIM_SERVER_ADDRESS)
catch /Failed to start server: address already in use/
endtry
endif
endfunction