Different behavior of `vim -R` and `view`

vim

Manual page on vim ($ man vim) states:

  view      Start in read-only mode.  You will be protected from writing the files.  Can also be done with the "-R" argument.

But, they have major differences.

When starting vim as vim -R the syntax coloring works.
But when started as view syntax coloring doesn't work.

view doesn't support vertical splitting, I tried Ctrl+w v, :vs and -O command line option.

Does view have a separate config? Or maybe it is completely separate from vim itself?

Best Answer

For some reason, on that PC (not administered by me) view is a symlink to /bin/vi, while vi is aliased to /usr/bin/vim system-wide.

And, of course, both vi and vim use argv[0] (the name they were launched with) to determine the behavior.

So, I just added alias view='vim -R' to my .bashrc.