Make a new buffer with 15 lines (empty or not, does not matter) With regex switched on and hypersearch switched on, search for ^ This will match only the first line! It should match all 15 lines.