1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 17:40:40 +08:00

Add shell cmd mapping

This commit is contained in:
wsdjeg 2017-04-17 23:52:59 +08:00
parent 1f16e7b9aa
commit c51a60d586
2 changed files with 6 additions and 1 deletions

View File

@ -132,6 +132,7 @@ function! SpaceVim#default#SetPlugins() abort
call add(g:spacevim_plugin_groups, 'misc')
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, 'github')
if has('python3')

View File

@ -9,5 +9,9 @@ function! SpaceVim#layers#default#plugins() abort
endfunction
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