spacevim/.SpaceVim.d/autoload/SpaceVim/dev/z.vim

21 lines
743 B
VimL
Raw Normal View History

2024-08-21 14:17:26 +08:00
"=============================================================================
" z.vim --- Script for generate doc of z key bindings
" Copyright (c) 2016-2023 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#dev#z#updatedoc() abort
let keys = keys(g:_spacevim_mappings_z)
let lines = []
for key in keys
if key ==# '`'
let line = '`` z' . key . ' `` | ' . g:_spacevim_mappings_z[key][1]
else
let line = '`z' . key . '` | ' . g:_spacevim_mappings_z[key][1]
endif
call add(lines, line)
endfor
call append(line('.'), lines)
endfunction