question on search

2011-04-06 Thread googler
How do I search for the words containing the string CKINV, but which do not start with G8S_ ? For example, I would be interested in the string xyz_CKINVX8 but not G8S_CKINVX3. Thanks. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Re: question on search

2011-04-06 Thread Tim Chase
On 04/06/2011 01:51 PM, googler wrote: How do I search for the words containing the string CKINV, but which do not start with G8S_ ? For example, I would be interested in the string xyz_CKINVX8 but not G8S_CKINVX3. /\\%(G8S_\)\@!\w*CKINV -tim -- You received this message from the vim_use

Re: question on search

2011-04-06 Thread Christian Brabandt
Hi googler! On Mi, 06 Apr 2011, googler wrote: How do I search for the words containing the string CKINV, but which do not start with G8S_ ? For example, I would be interested in the string xyz_CKINVX8 but not G8S_CKINVX3. Thanks. try: /\(G8S\)\@!CKINVX8 See :h /\\@! regards, Christian --