Thursday, April 14, 2016

Re: Regex failure in macro def. in Vim 7.4.580

Christian Brabandt wrote:
    
I have a bunch of lines in a file that start:  ---------       when (/users[^@]*\@.*domain\.com/) {  ...  -------  I.e. in interactive:    :s/when\s*(\/m{/      
  That pattern needs to be /when\s*(\//m{/  or use a different delimiter:  s#when\s*(/#m{#    Best,  Christian    
OH FRACK.... actually I backslash-escaped the 's' delimiter...sigh



No comments:

Post a Comment