diff --git a/autoload/SpaceVim/layers/ui.vim b/autoload/SpaceVim/layers/ui.vim index 59ae863b3..960d21e01 100644 --- a/autoload/SpaceVim/layers/ui.vim +++ b/autoload/SpaceVim/layers/ui.vim @@ -260,7 +260,9 @@ function! SpaceVim#layers#ui#config() abort call SpaceVim#mapping#space#def('nnoremap', ['t', 'p'], \ 'call SpaceVim#layers#core#statusline#toggle_mode("paste-mode")', \ 'toggle-paste-mode', 1) - + call SpaceVim#mapping#space#def('nnoremap', ['t', 'P'], + \ 'DelimitMateSwitch', + \ 'toggle-auto-parens-mode', 1) call SpaceVim#mapping#space#def('nnoremap', ['t', 'l'], 'setlocal list!', \ 'toggle-hidden-listchars', 1) diff --git a/docs/cn/documentation.md b/docs/cn/documentation.md index d7b7a926c..603def198 100644 --- a/docs/cn/documentation.md +++ b/docs/cn/documentation.md @@ -516,6 +516,7 @@ SpaceVim 在终端下默认使用了真色,因此使用之前需要确认下 | `SPC t b` | 切换背景色 | | `SPC t c` | 切换 conceal 模式 | | `SPC t p` | 切换 paste 模式 | +| `SPC t P` | 切换 auto parens 模式 | | `SPC t t` | 打开 Tab 管理器 | | `SPC T ~` | 显示/隐藏 Buffer 结尾空行行首的 `~` | | `SPC T F` | 切换全屏(TODO) | diff --git a/docs/documentation.md b/docs/documentation.md index 68a654c04..84dea6493 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -570,6 +570,7 @@ Some UI indicators can be toggled on and off (toggles start with t and T): | `SPC t b` | toggle background | | `SPC t c` | toggle conceal | | `SPC t p` | toggle paste mode | +| `SPC t P` | toggle auto parens mode | | `SPC t t` | open tabs manager | | `SPC T ~` | display ~ in the fringe on empty lines | | `SPC T F` | toggle frame fullscreen |