Sorry if I've got brain lock on this, but is it possible to match a
substring like
match wildmenu ;\(directory\)\{3,};
such that it will match three or more substring chars of the pattern
to match "dir" as well as "directory"? (I know the above format isn't
this.) I know I could do it if I cou
On 6/1/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
Sorry if I've got brain lock on this, but is it possible to match a
substring like
match wildmenu ;\(directory\)\{3,};
such that it will match three or more substring chars of the pattern
to match "dir" as well as "directory"? (I know the above
On Thu, Jun 01, 2006 at 05:05:00AM -0600, Eric Arnold wrote:
> Sorry if I've got brain lock on this, but is it possible to match a
> substring like
>
> match wildmenu ;\(directory\)\{3,};
>
> such that it will match three or more substring chars of the pattern
> to match "dir" as well as "directo
On 6/1/06, Benji Fisher <[EMAIL PROTECTED]> wrote:
On Thu, Jun 01, 2006 at 05:05:00AM -0600, Eric Arnold wrote:
> Sorry if I've got brain lock on this, but is it possible to match a
> substring like
>
> match wildmenu ;\(directory\)\{3,};
>
> such that it will match three or more substring chars
Sorry I wasn't clear, I wanted it to match any substring of
'directory'. I think \%[] does this (courtesy of Benji).
On 6/1/06, Cory Echols <[EMAIL PROTECTED]> wrote:
On 6/1/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
> Sorry if I've got brain lock on this, but is it possible to match a
> su
Eric Arnold wrote:
Real close. Turns out I think I want:
/\<\%[directory]\{1,}\>/
I suspect you want
/\/
but it doesn't seem to recognize \{1,} and without the \< it seems to
be matching white space. The problem with \< is that it doesn't
seem to allow \<\%[.directory]
What I'm a
Eric Arnold wrote:
Real close. Turns out I think I want:
/\<\%[directory]\{1,}\>/
I suspect you want
/\/
Regards,
Chip Campbell
Hey everyone,
I work with someone who formats their code like this:
if(asafdlkasdf)
{
asdfasf
}
i write like this:
if(asdfasfd) {
safasdf
}
I wrote a little regex to fix the ") _newline_ { _newline_" problem
but I am getting strange results
here is the regex: %s/)\s*\n\s*{\n/) {\n/ig
here is the regex: %s/)\s*\n\s*{\n/) {\n/ig
It runs through but my code is getting formatted like this now
if(asdf) { ^@ nextline_of_code _newline_
Vim uses various represenations at different points for nulls and
for newlines. Just change the "\n" in your replacement portion
to "\r", maki
Tim Chase wrote:
here is the regex: %s/)\s*\n\s*{\n/) {\n/ig
It runs through but my code is getting formatted like this now
if(asdf) { ^@ nextline_of_code _newline_
Vim uses various represenations at different points for nulls and for
newlines. Just change the "\n" in your replacement port
10 matches
Mail list logo