tags:

views:

51

answers:

1

Hi folks,

Straightforward question here and I can't make it any simpler than the title:

How do I set VIM to open files in "read-only" mode by default?

Thanks!

+5  A: 

add

set ro

to your .vimrc.

Also: commonly, you can type view filename instead of vim filename and it will open vim in readonly mode.

Peter
or alias vim="vim -R"
thrope