Replace search with helm-occur. Replace paste with helm-show-kill-ring. Use semantic mode in C/C++/Java.