On 17/06/11 09:40, rameo wrote:
I can't find out how to refer to another menu line in menu.vim

p.e.

an    95.038&Search\ Menu.Do\ command\ 1\       :a command of 150
characters

an    98.002&Edit\ Menu.Do\ command\ 2\            :my command1


How can I refer to command 1 in command 2 without rewriting the whole
commandline of command 1?


maybe
        let menutext1 = ':a command of 150 characters'
        exe 'anoremenu 95.38 &Search.Do\ command\ 1'
                \ . menutext1
        exe 'anoremenu 98.2 &Edit.Do\ command\ 2\'
                \ . menutext1
?

see
        :help :let
        :help :exe

HTH,
Tony.
--
If I had any humility I would be perfect.
                -- Ted Turner

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to