Re: Substitute within a highlight group.

2011-01-30 Thread sergio
On 01/28/2011 07:27 PM, David Fishburn wrote: SRSearch optionally takes parameters. Oh. I'v already done without srhg. May be it will be usefull for someone. This function finds DNS zone serial and increments it. function AdjustSerial() let l:pos = getpos( '.' ) call

Re: Substitute within a highlight group.

2011-01-28 Thread David Fishburn
On 1/18/2011 2:40 AM, sergio wrote: On 01/18/2011 05:55 AM, David Fishburn wrote: GOTO zone serial ^^ :SRChooseHiGrp You simply run those commands from within your script. Have you tried it? No. Because I don't know how to select zoneSerial group from script. The first

Re: Substitute within a highlight group.

2011-01-28 Thread David Fishburn
-- David Fishburn Solutions Architect iAnywhere Solutions / Sybase On 1/18/2011 4:01 AM, Christian Brabandt wrote: On Tue, January 18, 2011 8:40 am, sergio wrote: On 01/18/2011 05:55 AM, David Fishburn wrote: GOTO zone serial ^^ :SRChooseHiGrp You simply run those

Re: Substitute within a highlight group.

2011-01-18 Thread Christian Brabandt
On Tue, January 18, 2011 8:40 am, sergio wrote: On 01/18/2011 05:55 AM, David Fishburn wrote: GOTO zone serial ^^ :SRChooseHiGrp You simply run those commands from within your script. Have you tried it? No. Because I don't know how to select zoneSerial group from

Re: Substitute within a highlight group.

2011-01-15 Thread sergio
Hello, David. I did not understand how how to select group from script. For example I still want to substitute zoneSerial in bindzone file. GOTO zone serial :SRChooseHiGrp :%SRHiGrp '\(\d\+\)','test' How to do this from script? -- sergio. -- You received this message from the vim_use

Re: Substitute within a highlight group.

2011-01-01 Thread David Fishburn
On 12/30/2010 10:41 PM, sergio wrote: On 12/31/2010 06:13 AM, David Fishburn wrote: As Chip mentioned, I definitely want to know of any bugs. 1) I've not understand how to select highlight group from script. (For example I need to select zoneSerial group) 2) % vim bindzone :source

Re: Substitute within a highlight group.

2011-01-01 Thread sergio
On 01/01/2011 11:03 PM, David Fishburn wrote: What the plugin does, it is positions the cursor to the required highlight group and then runs Vim's standard regex. I guessed. This took care of the entire file: :%SRHiGrp '\(\d\+\)','__\1__' Yes, in my case this will work fine. But what if

Re: Substitute within a highlight group.

2010-12-31 Thread Christian Brabandt
Hi sergio! On Fr, 31 Dez 2010, sergio wrote: 2) % vim bindzone :source incoming/srhg/plugin/SrchRplcHiGrp.vim GOTO zone serial :SRChooseHiGrp SRHiGrp - Group ID: 97 Name: zoneSerial :SRHiGrp '\(.*\)','__\1__' .* also includes comment, that exists on this line: so I get: __2007031901 ;

Re: Substitute within a highlight group.

2010-12-31 Thread David Fishburn
Can you provide the text of the file you are editing. -- David Fishburn On Dec 30, 2010, at 10:41 PM, sergio mail...@sergio.spb.ru wrote: On 12/31/2010 06:13 AM, David Fishburn wrote: As Chip mentioned, I definitely want to know of any bugs. 1) I've not understand how to select

Re: Substitute within a highlight group.

2010-12-31 Thread sergio
On 12/31/2010 05:32 PM, David Fishburn wrote: Can you provide the text of the file you are editing. Forgot to say, I'm using vim 7.3.35 from debian sid. -- sergio. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Substitute within a highlight group.

2010-12-30 Thread sergio
On 12/30/2010 05:13 AM, Charles E Campbell Jr wrote: See if David Fishburn's SrchRplcHiGrp plugin does what you want: http://www.vim.org/script.php?script_id=848 Yes, it does. But it's buggy and old. Can vim do this without plugins? -- sergio. -- You received this message from the vim_use

Re: Substitute within a highlight group.

2010-12-30 Thread David Fishburn
On Dec 30, 2010, at 7:04 PM, Charles E Campbell Jr drc...@campbellfamily.biz wrote: sergio wrote: On 12/30/2010 05:13 AM, Charles E Campbell Jr wrote: See if David Fishburn's SrchRplcHiGrp plugin does what you want: http://www.vim.org/script.php?script_id=848 Yes, it does. But it's

Re: Substitute within a highlight group.

2010-12-30 Thread sergio
On 12/31/2010 06:13 AM, David Fishburn wrote: As Chip mentioned, I definitely want to know of any bugs. 1) I've not understand how to select highlight group from script. (For example I need to select zoneSerial group) 2) % vim bindzone :source incoming/srhg/plugin/SrchRplcHiGrp.vim GOTO zone

Re: Substitute within a highlight group.

2010-12-29 Thread Charles E Campbell Jr
sergio wrote: Hello. Is there a way to substitute within a highlight group? I have file, with detected filetype and applied syntax. Syntax gives the group. And I want to make a substitution, for that text, that matches this group. (Really this is a bindzone file, and I want to adjust serial

Substitute within a highlight group.

2010-12-28 Thread sergio
Hello. Is there a way to substitute within a highlight group? I have file, with detected filetype and applied syntax. Syntax gives the group. And I want to make a substitution, for that text, that matches this group. (Really this is a bindzone file, and I want to adjust serial value

Substitute within a highlight group.

2010-12-28 Thread sergio
Hello. Is there a way to substitute within a highlight group? I have file, with detected filetype and applied syntax. Syntax gives the group. And I want to make a substitution, for that text, that matches this group. (Really this is a bindzone file, and I want to adjust serial value