I am developing a command line application that uses Vim to edit an existing file. Think visudo or crontab -e.
Is there any command line option that I can pass to Vim to disable shell commands?
I am developing a command line application that uses Vim to edit an existing file. Think visudo or crontab -e.
Is there any command line option that I can pass to Vim to disable shell commands?
The -Z (restricted mode) command line option is what I'm looking for. This provides sufficient protection against :! being used. Thanks to Rich and B Layer for pointing this out in my sister question, "Prevent saving buffer with new name"
:help shellescape(). What I think you're talking about is usually referred to as "shell commands" or sometimes "shelling out". – Rich Feb 08 '18 at 11:06