Looks like less to me. How did you open the file? Double click from file explorer? Then you need to check your default applications.
It’s less after I removed it, it revert itself back to normal
As others have said, less is super useful, you should keep it installed. There are better ways to open text files with your preferred editor than removing all alternatives.
Put EDITOR=youreditor in your env and keep less. Less is fine and it’s usually default for man pages too.
I could be mistaken, but that editor looks like nano, which is just a super simple text editor. Ctrl-x should bring quit the editor and ask if you want to save.
How were you editing PKGBUILD files before? A GUI based editor?
It could be nano but I had to press Q to exit which is not nano key binding (Ctrl + X), I never edit PKGBUILD in terminal before, I’ll edit it in Kate if I had to
Idk how to revert it, but for me it looks like
less
Dude you’re a time saver, it’s actually less a text editor I never heard of before after I removed it PKGBUILD revert back to what it was before, it probably come with man page package I installed recently
Another way to fix this, would have been to navigate to the pkgbuild file in question, right click, open with, Kate. I’m more familiar with Gnome than KDE but I assume there’s an option to make Kate your default for opening files of that type.
After my first comment i digged into the man page of paru and found that another, although temporary, way is to use
-fm <command>
flag