[英]How to execute a menu.vim function from within vimrc?
I know that it is possible to call a vimrc function from menu.vim 我知道可以从menu.vim调用vimrc函数
but is it also possible the other way around? 但是反过来也可能吗?
pe Writing this in vimrc does't work: pe在vimrc中写这个不起作用:
nmap <F4> :call <SID>MyFunction_in_menuvim()<CR>
What did I wrong? 我错了什么?
<SID>
is used for local functions. <SID>
用于本地功能。 If your function is not local, you do not need to add this. 如果您的功能不是本地功能,则无需添加此功能。 <SID>
will be replace by a string like: <SNR>23_
<SID>
将被替换为如下字符串: <SNR>23_
See vim documentation on map for more information 有关更多信息,请参阅地图上的vim文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.