On Saturday, February 1, 2014 8:57:53 PM UTC+1, Kevin O'Gorman wrote: > On Sat, Feb 1, 2014 at 11:50 AM, Kevin O'Gorman <[email protected]> wrote: > > On Sat, Feb 1, 2014 at 9:56 AM, glts <[email protected]> wrote: > >> On Saturday, February 1, 2014 6:11:27 PM UTC+1, Kevin O'Gorman wrote: > >>> I used to be able to set a bunch of options with modelines. Something > >>> has changed. > >>> > >>> For example, I put this line at the bottom of a bash script: > >>> # vim: et sr ai nocp:sts=2 sw=2 ts=8 > >>> but I find my shiftwidth is still 8. Changing spaces to colons does not > >>> help. > >>> > >>> The format I'm using agrees with the :help modeline format. But no joy. > >>> > >>> What am I doing wrong? > >> > >> What Vim version are you using? > >> > >> Your modeline works just fine for me on both versions 7.3 and 7.4. > > It says it's 7.4, and it came with my Xubuntu 13.10 AMD system > > > > Additional: it only fails when I'm root. root has no .vimrc > I don't know why any of this would matter....
Your last message had the crucial bit of information. Quoting ":h 'modeline'": > 'modeline' 'ml' boolean (Vim default: on (off for root), > Vi default: off) Modelines are off when you're root. Time to create a vimrc for root? -- David -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
