mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Add old vim support (#2116)
This commit is contained in:
parent
2da17c7b25
commit
1f8ddcf6d7
@ -60,7 +60,7 @@ SpaceVim 内置了一种特殊的模式,Iedit 模式,这种模式提供了
|
|||||||
该模式支持两种状态 :`iedit-Normal` 和 `iedit-Insert`。默认情况下,多光标输入时,`iedit-normal`
|
该模式支持两种状态 :`iedit-Normal` 和 `iedit-Insert`。默认情况下,多光标输入时,`iedit-normal`
|
||||||
模式状态栏时是红色,而 `iedit-insert` 模式时是绿色,当然这根据所选择主题决定。
|
模式状态栏时是红色,而 `iedit-insert` 模式时是绿色,当然这根据所选择主题决定。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 高亮光标下的函数
|
### 高亮光标下的函数
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ SpaceVim uses powerful iedit mode to quick edit multiple occurrences of a symbol
|
|||||||
|
|
||||||
The default color for iedit is `red`/`green` which is based on the current colorscheme.
|
The default color for iedit is `red`/`green` which is based on the current colorscheme.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**Highlight cursor symbol**
|
**Highlight cursor symbol**
|
||||||
|
|
||||||
|
@ -63,9 +63,11 @@ function! s:loadLayerConfig(layer) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:disable_plugins(plugin_list) abort
|
function! s:disable_plugins(plugin_list) abort
|
||||||
for name in a:plugin_list
|
if g:spacevim_plugin_manager ==# 'dein'
|
||||||
call dein#disable(name)
|
for name in a:plugin_list
|
||||||
endfor
|
call dein#disable(name)
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#plugins#get(...) abort
|
function! SpaceVim#plugins#get(...) abort
|
||||||
|
@ -264,6 +264,9 @@ function! s:on_pull_exit(id, data, event) abort
|
|||||||
else
|
else
|
||||||
let id = a:id
|
let id = a:id
|
||||||
endif
|
endif
|
||||||
|
if !has_key(s:pulling_repos, id)
|
||||||
|
return
|
||||||
|
endif
|
||||||
if a:data == 0 && a:event ==# 'exit'
|
if a:data == 0 && a:event ==# 'exit'
|
||||||
call s:msg_on_updated_done(s:pulling_repos[id].name)
|
call s:msg_on_updated_done(s:pulling_repos[id].name)
|
||||||
else
|
else
|
||||||
@ -362,6 +365,9 @@ function! s:on_install_exit(id, data, event) abort
|
|||||||
else
|
else
|
||||||
let id = a:id
|
let id = a:id
|
||||||
endif
|
endif
|
||||||
|
if !has_key(s:pulling_repos, id)
|
||||||
|
return
|
||||||
|
endif
|
||||||
if a:data == 0 && a:event ==# 'exit'
|
if a:data == 0 && a:event ==# 'exit'
|
||||||
call s:msg_on_install_done(s:pulling_repos[id].name)
|
call s:msg_on_install_done(s:pulling_repos[id].name)
|
||||||
else
|
else
|
||||||
@ -374,7 +380,7 @@ function! s:on_install_exit(id, data, event) abort
|
|||||||
call s:build(s:pulling_repos[id])
|
call s:build(s:pulling_repos[id])
|
||||||
else
|
else
|
||||||
let s:pct_done += 1
|
let s:pct_done += 1
|
||||||
call s:set_buf_line(s:plugin_manager_buffer, 1, 'Updating plugins (' . s:pct_done . '/' . s:total . ')')
|
call s:set_buf_line(s:plugin_manager_buffer, 1, 'Installing plugins (' . s:pct_done . '/' . s:total . ')')
|
||||||
call s:set_buf_line(s:plugin_manager_buffer, 2, s:status_bar())
|
call s:set_buf_line(s:plugin_manager_buffer, 2, s:status_bar())
|
||||||
endif
|
endif
|
||||||
call remove(s:pulling_repos, string(id))
|
call remove(s:pulling_repos, string(id))
|
||||||
@ -404,6 +410,8 @@ function! s:pull(repo) abort
|
|||||||
call s:msg_on_start(a:repo.name)
|
call s:msg_on_start(a:repo.name)
|
||||||
redraw!
|
redraw!
|
||||||
call s:JOB.start(argv,{
|
call s:JOB.start(argv,{
|
||||||
|
\ 'on_stderr' : function('s:on_install_stdout'),
|
||||||
|
\ 'cwd' : a:repo.path,
|
||||||
\ 'on_exit' : function('s:on_pull_exit')
|
\ 'on_exit' : function('s:on_pull_exit')
|
||||||
\ })
|
\ })
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user