mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
Add shell cmd mapping
This commit is contained in:
parent
1f16e7b9aa
commit
c51a60d586
@ -132,6 +132,7 @@ function! SpaceVim#default#SetPlugins() abort
|
|||||||
call add(g:spacevim_plugin_groups, 'misc')
|
call add(g:spacevim_plugin_groups, 'misc')
|
||||||
|
|
||||||
call add(g:spacevim_plugin_groups, 'core')
|
call add(g:spacevim_plugin_groups, 'core')
|
||||||
|
call add(g:spacevim_plugin_groups, 'default')
|
||||||
call add(g:spacevim_plugin_groups, 'unite')
|
call add(g:spacevim_plugin_groups, 'unite')
|
||||||
call add(g:spacevim_plugin_groups, 'github')
|
call add(g:spacevim_plugin_groups, 'github')
|
||||||
if has('python3')
|
if has('python3')
|
||||||
|
@ -9,5 +9,9 @@ function! SpaceVim#layers#default#plugins() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#layers#default#config() abort
|
function! SpaceVim#layers#default#config() abort
|
||||||
|
if has('nvim')
|
||||||
|
call SpaceVim#mapping#space#def('nnoremap', ['!'], 'te', 'shell cmd', 1)
|
||||||
|
else
|
||||||
|
call SpaceVim#mapping#space#def('nnoremap', ['!'], ':!', 'shell cmd', 0)
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user