Post #1848097
2026-05-01 13:50 UTC
Replies (7)
-
@drj@typo.social 2026-05-02 07:55
@wordshaper@weatherishappening.network @simontatham@hachyderm.io now you know 25% of vi the editor. And if you use j and k to go up and down, that's another 12.5% shared with vi.
-
@jyrgenn@mas.to 2026-05-04 10:42
@wordshaper@weatherishappening.network @simontatham@hachyderm.io I knew that, but not that 'N' reverses the search direction. Could have used that many times. Thanks!
-
@hal_pomeranz@infosec.exchange 2026-05-01 13:56
@simontatham@hachyderm.io @barubary@infosec.exchange Instead of using n/N, you can also just hit / or ? again with no pattern to repeat the previous search. I believe this is the reason for the behavior you’ve discovered.
-
@thaodan@mastodon.social 2026-05-01 14:08
@simontatham@hachyderm.io Less is essentially vim but stuck in view mode.
-
@praxiscode@mastodon.online 2026-05-01 14:15
Are you aware of the & command in less? It's like applying a grep to the file, after which you can also perform /? searches @simontatham@hachyderm.io
-
@leeloo@c.im 2026-05-01 14:28
@simontatham@hachyderm.io Glad I didn't know about ?. I always use / followed by N. To be honest, I don't think I would have used it even if I knew. N searching forward and n backwards seems like a case of "if not not not" in my mind.
-
@minego@pdx.social 2026-05-01 16:42
@simontatham@hachyderm.io Weird... I am not able to reproduce this behavior. Are there multiple implementations of less out there? I also didn't realize that you could cancel a search with backspace. Somehow it never occurred to me to try that.