1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00

Merge pull request #948 from SpaceVim/help

Help describe key bindings
This commit is contained in:
Wang Shidong 2017-10-28 22:08:57 +08:00 committed by GitHub
commit 0d25e2503d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -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. - **Beautiful GUI:** you'll love the awesome UI and its useful features.
- **Mnemonic key bindings:** all key bindings have mnemonic prefixes. - **Mnemonic key bindings:** all key bindings have mnemonic prefixes.
![mapping guide](https://user-images.githubusercontent.com/13142418/31550099-c8173ff8-b062-11e7-967e-6378a9c3b467.gif) ![mapping guide](https://user-images.githubusercontent.com/13142418/31550099-c8173ff8-b062-11e7-967e-6378a9c3b467.gif)
- **Describe key bindings:** use <kbd>SPC h d k</kbd> 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) - **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) ![UI for dein](https://user-images.githubusercontent.com/13142418/31309093-36c01150-abb3-11e7-836c-3ad406bdd71a.gif)
- **Neovim centric:** Dark powered mode of SpaceVim - **Neovim centric:** Dark powered mode of SpaceVim

View File

@ -376,7 +376,7 @@ let g:spacevim_enable_vimfiler_gitstatus = 0
" Enable/Disable filetypeicon column in vimfiler buffer, default is 0. " Enable/Disable filetypeicon column in vimfiler buffer, default is 0.
let g:spacevim_enable_vimfiler_filetypeicon = 0 let g:spacevim_enable_vimfiler_filetypeicon = 0
let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default'] 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_altmoveignoreft = ['Tagbar' , 'vimfiler']
let g:spacevim_enable_javacomplete2_py = 0 let g:spacevim_enable_javacomplete2_py = 0
let g:spacevim_src_root = 'E:\sources\' let g:spacevim_src_root = 'E:\sources\'

View File

@ -66,4 +66,6 @@ function! s:open_describe_buffer(desc) abort
if lines < winheight(0) if lines < winheight(0)
exe 'resize ' . lines exe 'resize ' . lines
endif endif
setlocal nofoldenable
nnoremap <buffer><silent> q :bd<cr>
endfunction endfunction

View File

@ -3,6 +3,8 @@ if exists("b:current_syntax")
endif endif
let b:current_syntax = "HelpDescribe" let b:current_syntax = "HelpDescribe"
syntax case ignore syntax case ignore
syn match FileName /[^:]*:\d\+:/ syn match FileName /\(Definition:\ \)\@<=.*/
syn match KeyBindings /\[.*\]/
hi def link FileName Comment hi def link FileName Comment
hi def link KeyBindings String