Hacker News new | past | comments | ask | show | jobs | submit login

Re: bat > cat

Cat is just a tool to dump files to stdout and maybe concatenate them. If you want paging, syntax highlighting, etc, you probably want a tool to replace `less`, not `cat`.




I don't know about bat vs cat, but fcat is actually kind of impressive..

https://github.com/mre/fcat


view is also perfectly good, it's vim's pager.


Isn't "view" just an alias to invoke vim on read-only mode (i.e. you can still edit the text, do anything else you can do on vim and then save the contents to another file instead of the original file)?


The man page suggests it's equivalent to "vim -R". I usually use that because "view" seems to ignore my .vimrc for some reason.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: