简体   繁体   中英

How to execute a menu.vim function from within vimrc?

I know that it is possible to call a vimrc function from menu.vim
but is it also possible the other way around?

pe Writing this in vimrc does't work:

nmap <F4> :call <SID>MyFunction_in_menuvim()<CR>

What did I wrong?

<SID> is used for local functions. If your function is not local, you do not need to add this. <SID> will be replace by a string like: <SNR>23_

See vim documentation on map for more information

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM