Thursday, December 30, 2010

Re: Substitute within a highlight group.

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 serial>
:SRChooseHiGrp
SRHiGrp - Group ID: 97 Name: zoneSerial
:SRHiGrp '\(.*\)','__\1__'
.* also includes comment, that exists on this line: so I get:
__2007031901 ; serial__
instead of:
__2007031901__ ; serial

3)
<GOTO ip address>
:SRChooseHiGrp
SRHiGrp - Group ID: 94 Name: zoneIPAddr
:SRSearch
goes to the next octet of selected ip address, not to the next ip address.

<GOTO zoneDirective>
:SRChooseHiGrp
SRHiGrp - Group ID: 89 Name: zoneDirective
:SRSearch
first SRSearch (from neutral space) goes to '$' of next directive,
second --- to the first letter after $ of the same directive.


--
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 more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment