Re:Stop using tail -f (mostly)
by blueblob on Monday March 30, 2015 @02:51PM
(#9291678)
I think your idea of `vi -R` or `vim -R` is a good idea. `less` uses less memory and may load faster but looking at logs for things like valgrind vim will give you syntax highlighting that I am not sure you can get with `less`.
[ Parent
| on HN ]
BTW, starting vim as "view" (through e.g. a symlink) is equivalent to "vim -R", precisely for this use case [0].
[0] http://vimdoc.sourceforge.net/htmldoc/starting.html#view
I have used `view` but it didn't give me syntax highlighting. On my system (archlinux) view is actually a symlink to ex (which must change its behavior based on its name?).
readlink /usr/bin/view
ex