如何从vimscript调用编辑器命令?
发布时间:2020-12-15 21:14:36 所属栏目:安全 来源:网络整理
导读:我想从taglist中删除不需要的滚动条.我创建了一个函数和一个这样的命令: function s:TlistWaToggle() normal :TlistTogglecr " - this does not work set guioptions-=rendfunctioncommand! -nargs=0 -bar TlistWaToggle call s:TlistWaToggle() 我想将调用
我想从taglist中删除不需要的滚动条.我创建了一个函数和一个这样的命令:
function s:TlistWaToggle() normal :TlistToggle<cr> " <- this does not work set guioptions-=r endfunction command! -nargs=0 -bar TlistWaToggle call s:TlistWaToggle() 我想将调用包装:TlistToggle与命令一起删除右滚动条(我当然有这个设置,但它总是重新出现,所以这是一个解决方法).目前我的:TlistWaToggle什么都不做.我怎样才能使它工作? 解决方法
Vim脚本使用ex命令,显然:TlistToggle是一个ex命令…
function! s:TlistWaToggle() TlistToggle set guioptions-=r endfunction (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 《数据结构》实验四 字符串和多维数组 实验
- 2007 开发语言技术回顾
- 对于webservice响应,text/xml和application/xml之间有什么区
- Couldn't register com.yourcompany.XXX with bootstra
- 全国省市县三级联动(数据完整版)
- bootstrap scrollspy collapse 做能收缩能自动展开的菜单
- angular – 使用* ngFor循环遍历数组,使用* ngIf选择要列出
- bootstrap19-内联表单
- 表单input项使用label同时引用Bootstrap库导致input点击效果
- 如果Docker在Windows上本机运行,那为什么它需要hyper-v