On 2009-01-09, John Beckett wrote: > jkb wrote: > > My vim just got updated to 7.2 today. Now, when I edit a > > file containing only the line > > > > vi: a > > > > I get this error message: > > > > Error detected while processing modelines: > > line 1: > > E518: Unknown option: a > > Press ENTER or type command to continue > > The line is an invalid modeline. For more info: > :help modeline > > Or, do you understand modelines and expect 'a' to do something? > > If you were previously editing with 'compatible' on (ugh!), you would > not have had such an error because modelines are a Vim (not vi) feature.
At least some versions of vi do have modelines. HP-UX's vi does, for example. It is true, though, that vim in 'compatible' mode defaults to 'nomodeline'. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
