Vim内から行う. https://stackoverflow.com/a/4044095/8776028 :view /path/to/file Vim起動時に制限する. vim -R /path/to/file