Tuesday, October 26, 2010

Re: difference command line and menu?

On Oct 25, 1:11 pm, rameo <rai...@gmail.com> wrote:
>
> > Please tell us exactly what you've put in menu.vim.
>
> > Regards, John
>
> John exactly the same command as in the vimrc file.
>
> :'<,'>s/^\([-*]\|\d*\.\)\s*\l/\U&/gc<CR>
>

Are you saying the above line occurs by itself in menu.vim? Then you
did it wrong, and the error you're seeing is because Vim executes
the :s command on startup, and does not create a menu entry. You need
to use this command as the last part of one of the menu creation
commands, given in :help creating-menus.

If you are NOT saying that this line occurs by itself in menu.vim,
then what line DOES appear there? THIS is what John is asking, not
what regex you used. I don't use menus myself, but it certainly looks
from the help files that they work pretty much just like mappings.

I do note the following, however, below :help creating-menus:
Special characters in a menu name:

& The next character is the shortcut key. Make sure each
shortcut key is only used once in a (sub)menu. If you want to
insert a literal "&" in the menu name use "&&".

Since your regex contains a &, this may also be your problem.

--
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

No comments:

Post a Comment