put cursor on found text in less or vi?

Karl Auer kauer at biplane.com.au
Wed Sep 25 11:34:49 UTC 2024


On Wed, 2024-09-25 at 12:17 +0200, Nils Kassube via ubuntu-users wrote:
> On 25.09.24 Karl Auer wrote:
> > I am looking at a text file with thousands of very long lines.
> First you could install joe.

Thanks! I tried joe, and it does indeed display the found text
location. Then with ^K-space, I can display the line details too. This
solves my problem. Plus it loaded a quite-large file with very long
lines in no time at all. And - bonus points - it has a read-only mode.

Very clunky compared to vi, but isn't everything? :-) That's the
penalty you pay for modeless I guess.

> Second you could use a GUI editor.

Every GUI editor I have ever tried has failed to handle either large
file, or long lines, or both. I don't bother trying them any more. If
there's a specific one that you know works, do tell!

> And kate will not only position the cursor at the position found
> but also highlight the rest of the locations.

So do less and vi...

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer






More information about the ubuntu-users mailing list