You are not logged in.
This line is at the end of a load of my bash scripts, but none of the settings are getting applied (for the several files I've tried).
It's the last line in my file.
# vim:set ts=4 sw=4 ft=sh et:I've got no modeline setting in my vimrc, so no idea why it's being ignored unless there's one. I've read though the vim help and have done a quick internet search, but can't find anything obvious.
Any ideas?
Last edited by skanky (2012-07-11 09:32:43)
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
What is the output of the command
:set modelineswhen it is run in vim?
Offline
I think the expandoption shouldn't have a colon. What happens if you try:
# vim: ts=4 sw=4 ft=sh etOffline
What is the output of the command
:set modelineswhen it is run in vim?
modelines=5
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
I think the expandoption shouldn't have a colon. What happens if you try:
# vim: ts=4 sw=4 ft=sh et
That doesn't change behaviour, and I think it goes against what the help says.
However, it looks like the issue is elsewhere, as looking at the settings, the modeline isn't getting ignored, it's the behaviour isn't as I expect from those settings. This could be user error, but whatever it is, it isn't modelines getting ignored. So I'll mark this as solved and look into the behaviour issue.
Many thanks for your replies. ![]()
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline