Re: menu.vim: reference to another menu line command

2011-06-18 Thread rameo
Anyone has an idea how to resolve my question? -- 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

Re: menu.vim: reference to another menu line command

2011-06-18 Thread rameo
I believe that I have found it. it is the C-r/ command let delmatches = ':g/C-r//d C' an 98.002Edit\ Menu.Delete\ Matches\:exe delmatchesCR --- doesn't work (E486 pattern not found: C-r) an 98.002Edit\ Menu.Delete\ Matches\:g/C-r//d CCR --- does work. Any idea? -- You received this

Re: menu.vim: reference to another menu line command

2011-06-18 Thread Tony Mechelynck
On 18/06/11 10:57, rameo wrote: I believe that I have found it. it is theC-r/ command let delmatches = ':g/C-r//d C' an 98.002Edit\ Menu.Delete\ Matches\:exe delmatchesCR --- doesn't work (E486 pattern not found:C-r) an 98.002Edit\ Menu.Delete\ Matches\:g/C-r//d CCR --- does work.

Re: menu.vim: reference to another menu line command

2011-06-18 Thread rameo
Thank you very much. When I read that I had to put the menu command inside the :execute I placed the :exe before delmatches (I thought the menu command was the command in the menu) and not before the whole menu command. -- You received this message from the vim_use maillist. Do not top-post!

menu.vim: reference to another menu line command

2011-06-17 Thread rameo
I can't find out how to refer to another menu line in menu.vim p.e. an95.038 Search\ Menu.Do\ command\ 1\ :a command of 150 characters an98.002 Edit\ Menu.Do\ command\ 2\:my command1 How can I refer to command 1 in command 2 without rewriting the whole commandline of

Re: menu.vim: reference to another menu line command

2011-06-17 Thread Tony Mechelynck
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. an95.038Search\ Menu.Do\ command\ 1\ :a command of 150 characters an98.002Edit\ Menu.Do\ command\ 2\:my command1 How can I refer to command 1 in command 2 without

Re: menu.vim: reference to another menu line command

2011-06-17 Thread rameo
On Jun 17, 9:56 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: 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. an95.038Search\ Menu.Do\ command\ 1\ :a command of 150 characters an98.002Edit\ Menu.Do\ command\

Re: menu.vim: reference to another menu line command

2011-06-17 Thread Christian Brabandt
Hi rameo! On Fr, 17 Jun 2011, rameo wrote: This doesn't seem to work (or I did something wrong). p.e. command 1 = :%s/foo/bar/g let command_1 = ':%s/foo/bar/g' an 98.002Edit\ Menu.Do\ command\ 2\:command_1 ?? You need to evaluate the variable first. This is done using the :exe

Re: menu.vim: reference to another menu line command

2011-06-17 Thread rameo
On Jun 17, 1:31 pm, Christian Brabandt cbli...@256bit.org wrote: Hi rameo! On Fr, 17 Jun 2011, rameo wrote: This doesn't seem to work (or I did something wrong). p.e. command 1 = :%s/foo/bar/g let command_1 = ':%s/foo/bar/g' an 98.002Edit\ Menu.Do\ command\ 2\:command_1 ??

Re: menu.vim: reference to another menu line command

2011-06-17 Thread Christian Brabandt
Hi rameo! On Fr, 17 Jun 2011, rameo wrote: On Jun 17, 1:31 pm, Christian Brabandt cbli...@256bit.org wrote: Hi rameo! On Fr, 17 Jun 2011, rameo wrote: This doesn't seem to work (or I did something wrong). p.e. command 1 = :%s/foo/bar/g let command_1 = ':%s/foo/bar/g'

Re: menu.vim: reference to another menu line command

2011-06-17 Thread rameo
On Jun 17, 2:33 pm, Christian Brabandt cbli...@256bit.org wrote: Hi rameo! On Fr, 17 Jun 2011, rameo wrote: On Jun 17, 1:31 pm, Christian Brabandt cbli...@256bit.org wrote: Hi rameo! On Fr, 17 Jun 2011, rameo wrote: This doesn't seem to work (or I did something wrong).

Re: menu.vim: reference to another menu line command

2011-06-17 Thread Christian Brabandt
Hi rameo! On Fr, 17 Jun 2011, rameo wrote: On Jun 17, 2:33 pm, Christian Brabandt cbli...@256bit.org wrote: On Fr, 17 Jun 2011, rameo wrote: This is my command: let deletematches1 = ':call SIDCopyMatchesLines(%,)CR:let @c = CR:g/C-r//d CCR:let @*=@cCR' this is my menu: an

Re: menu.vim: reference to another menu line command

2011-06-17 Thread rameo
Yes it gives the output what I want (in the commandline) but not the output what I want as it gave before. Can't find the reason. I send you my function also: function! s:CopyMatchesLines(type,kind) let posinit = getpos(.) if a:type == ',' let StartPosition = line(') let