diff --git a/README.md b/README.md index 498e2756a..ec9a63f28 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,8 @@ curl -sLf https://spacevim.org/install.sh | bash -s -- -h - **Beautiful GUI:** you'll love the awesome UI and its useful features. - **Mnemonic key bindings:** all key bindings have mnemonic prefixes. ![mapping guide](https://user-images.githubusercontent.com/13142418/31550099-c8173ff8-b062-11e7-967e-6378a9c3b467.gif) +- **Describe key bindings:** use SPC h d k to describe key bindings. + ![describe key](https://user-images.githubusercontent.com/13142418/32134986-060a3b8a-bc2a-11e7-89a2-3ee4e616bf06.gif) - **Lazy load plugins:** Lazy-load 90% of plugins with [dein.vim](https://github.com/Shougo/dein.vim) ![UI for dein](https://user-images.githubusercontent.com/13142418/31309093-36c01150-abb3-11e7-836c-3ad406bdd71a.gif) - **Neovim centric:** Dark powered mode of SpaceVim diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 9013ccfca..3a35da051 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -376,7 +376,7 @@ let g:spacevim_enable_vimfiler_gitstatus = 0 " Enable/Disable filetypeicon column in vimfiler buffer, default is 0. let g:spacevim_enable_vimfiler_filetypeicon = 0 let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default'] -let g:spacevim_smartcloseignoreft = ['help', 'tagbar', 'vimfiler', 'SpaceVimRunner', 'SpaceVimQuickFix'] +let g:spacevim_smartcloseignoreft = ['help', 'tagbar', 'vimfiler', 'SpaceVimRunner', 'SpaceVimQuickFix', 'HelpDescribe'] let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler'] let g:spacevim_enable_javacomplete2_py = 0 let g:spacevim_src_root = 'E:\sources\' diff --git a/autoload/SpaceVim/plugins/help.vim b/autoload/SpaceVim/plugins/help.vim index 032ae557e..2a9d0461c 100644 --- a/autoload/SpaceVim/plugins/help.vim +++ b/autoload/SpaceVim/plugins/help.vim @@ -66,4 +66,6 @@ function! s:open_describe_buffer(desc) abort if lines < winheight(0) exe 'resize ' . lines endif + setlocal nofoldenable + nnoremap q :bd endfunction diff --git a/syntax/HelpDescribe.vim b/syntax/HelpDescribe.vim index 69482ad9c..74b0d62bf 100644 --- a/syntax/HelpDescribe.vim +++ b/syntax/HelpDescribe.vim @@ -3,6 +3,8 @@ if exists("b:current_syntax") endif let b:current_syntax = "HelpDescribe" syntax case ignore -syn match FileName /[^:]*:\d\+:/ +syn match FileName /\(Definition:\ \)\@<=.*/ +syn match KeyBindings /\[.*\]/ hi def link FileName Comment +hi def link KeyBindings String