Re: Finding a delimiter programmatically

2008-11-29 Thread Tony Mechelynck
On 29/11/08 04:54, Tim Johnson wrote: Using vim 7.1 (huge) on kubuntu 7.10 Executing the following ?[\|(\|{ Gives me the expected results. I.E. The cursor is placed at the closest previous '[' or '(' or '{' Executing the following /]\|)\|} Gives me the expected results. I.E. The cursor

Re: Finding a delimiter programmatically

2008-11-29 Thread Matt Wozniski
On Sat, Nov 29, 2008 at 5:29 AM, Tony Mechelynck wrote: You might try normal ?[\|(\|{ This won't work. And I gave a correct answer 6 hours ago. ~Matt --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information,

Re: Finding a delimiter programmatically

2008-11-29 Thread Tom Link
exe 'norm! ?[\|(\|{' . \CR or exe norm! ?[\\|(\\|{\CR Instead of (cryptic) nested norm exec constructs, you could also use the search() and/or searchpair() functions. call search('[[({]', 'b') Just as an alternative solution. --~--~-~--~~~---~--~~ You

Re: Finding a delimiter programmatically

2008-11-29 Thread Tim Johnson
On Friday 28 November 2008, Tim Johnson wrote: Using vim 7.1 (huge) on kubuntu 7.10 Thanks to all for the edification on this topic. I especially appreciated Matt's distinction between characterwise and linewise searches for / and ? cheers tim