How to show only matching lines in editors
Today I was looking for how to show only matching lines in vim and then I found myself looking up same thing for the others.
We have occur-mode for that. Just bind a key like this:
(global-set-key (kbd “C-c o”) ‘occur)
And then use it like “M-s o” in search
Sublime Text 2:
There is a wonderful solution down with a nice python plugin:
I wonder how this can be achieved using Intellij Idea, Eclipse, TextMate 2, Notepad++ etc ..