通过seeing is believing来观察块中的参数值

#安装
gem install seeing_is_believing
#vimrc配置
" ===== Seeing Is Believing =====

" " Annotate every line
nmap <leader>b :%!seeing_is_believing --timeout 12 --line-length 500 --number-of-captures 300 --alignment-strategy chunk<CR>;
"  " Annotate marked lines
nmap <leader>n :%.!seeing_is_believing --timeout 12 --line-length 500 --number-of-captures 300 --alignment-strategy chunk --xmpfilter-style<CR>;
"  " Remove annotations
nmap <leader>c :%.!seeing_is_believing --clean<CR>;
"  " Mark the current line for annotation
nmap <leader>m A # => <Esc>
"  " Mark the highlighted lines for annotation
vmap <leader>m :norm A # => <Esc>

快捷键

,b 每一行都添加变量注释
,c 去除变量注释

results matching ""

    No results matching ""