我想从标签列表中删除不需要的滚动条。我创建了这样的函数和命令:
function s:TlistWaToggle()
normal :TlistToggle<cr> " <- this does not work
set guioptions-=r
endfunction
command! -nargs=0 -bar TlistWaToggle call s:TlistWaToggle()
Run Code Online (Sandbox Code Playgroud)
我想将对:TlistToggle的调用与该命令一起包装,以删除右侧的滚动条(我当然具有该设置,但是它始终会重新出现,因此这是一种解决方法)。目前,我的:TlistWaToggle不执行任何操作。我该如何运作?
Vim脚本使用ex命令,显然:TlistToggle
是ex命令…
function! s:TlistWaToggle()
TlistToggle
set guioptions-=r
endfunction
Run Code Online (Sandbox Code Playgroud)