In vim I can open a file in a vertical split by using the command vs myfile.txt
and I can open a file in a new editor, in read only mode with vim -R myfile.txt
.
I want to combine these to commands, ideally vs -R myfile.txt, but of course I've already discovered that doesn't work. I want to open the file this way because I have the file open in a different tab and I want to be sure that I don't accidently edit the file.