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]
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
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
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
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
'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