Brecht Machiels wrote:
Hi,
You can clear the 'modifiable' option to disable unintended
modifications to a buffer.
setlocal nomodifiable
Is is possible to prevent, for example, the project plugin from opening
another file (other than the current) in a window? The nomodifiable
option only applies to the buffer. The window should be locked to the
buffer instead.
Regards,
Brecht
Instead of calling the program "vim", call it "rview". Then you won't be able
to write anything, nor to use a shell command. Is that safe enough? Maybe
":help starting.txt" will give you other ideas.
Best regards,
Tony.