FG

modeline does not work in vim

Fresh3 days ago
Mar 15, 202622642 views
Confidence Score0%
0%

Problem

I have a file called for bash and zsh, I put this line but if I make I get

Error Output

# vim: set filetype=bash:

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: modeline does not work in vim

Low Risk

That should work. I tried that line myself and it worked. I could be that your 'modeline' option got set to 'nomodeline'. Try executing this and see what you get. That will tell you the value of the 'modeline' option and if not the default, where it…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment