Use vim -R instead of view (works better when reading from stdin).