Thursday, August 27, 2015

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

> 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] https://github.com/tomtom/trag_vim

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: