Re: vim - how to enable searching in vim editor and finding/highlighting pattern that is only in non-commented block/line

2015-08-27 Thread lith
I am looking for a way to search in vim editor and to find text highlighted only for pattern found in non-commented blocks/lines. With the trag[1] plugin you could do: :Trag -i PATTERN This will search all files in the current project though and not just the current buffer. [1]

Re: vim - how to enable searching in vim editor and finding/highlighting pattern that is only in non-commented block/line

2015-08-25 Thread David Fishburn
On Sun, Aug 23, 2015 at 7:02 PM, 'Annis Monadjem' via vim_use vim_use@googlegroups.com wrote: Hi, I am looking for a way to search in vim editor and to find text highlighted only for pattern found in non-commented blocks/lines. ... Is there a more productive way of

Re: vim - how to enable searching in vim editor and finding/highlighting pattern that is only in non-commented block/line

2015-08-25 Thread romainlafourcade
Is there a more productive way of searching/highlighting patterns of text that appear in a file only in non-commented blocks/lines. The commands at :help include-search do exactly that. :ilist foo will list: bar baz foo foo bar baz but not: // foo does this The d variants

Re: vim - how to enable searching in vim editor and finding/highlighting pattern that is only in non-commented block/line

2015-08-24 Thread Ben Fritz
On Monday, August 24, 2015 at 2:12:30 AM UTC-5, Annis Monadjem wrote: Hi, I am looking for a way to search in vim editor and to find text highlighted only for pattern found in non-commented blocks/lines. I often use *, #, g*, g# but these find every pattern also in commented

vim - how to enable searching in vim editor and finding/highlighting pattern that is only in non-commented block/line

2015-08-24 Thread 'Annis Monadjem' via vim_use
Hi, I am looking for a way to search in vim editor and to find text highlighted only for pattern found in non-commented blocks/lines. I often use *, #, g*, g# but these find every pattern also in commented blocks/lines of code. Also, I frequently use plugins CltrP, CTags and taglist but these

Re: vim - how to enable searching in vim editor and finding/highlighting pattern that is only in non-commented block/line

2015-08-24 Thread Charles Campbell
'Annis Monadjem' via vim_use wrote: Hi, I am looking for a way to search in vim editor and to find text highlighted only for pattern found in non-commented blocks/lines. I often use *, #, g*, g# but these find every pattern also in commented blocks/lines of code. Also, I frequently use