Russell Bateman wrote:
You can put these modelines at the top of your file or the bottom. Also, they can go on other lines, but I think there's a limit there and yet another setting to change how tolerant Vim is in looking for them, but as this approach suits me, I haven't experimented a lot to find any more out. I think the limit may actually allow by default for the first two lines, so your own example would work fine. In fact, I think I once tried line 2 of my C file and it worked, but I can't guarantee it. ..snip..
There's a setting, modelines, that vim uses. By default, its 5, but you can change it in your <.vimrc>, for example. Within "modelines" lines of either the beginning or the end of the file, vim will search for modelines.
:he 'modelines' :he modelines Regards, Chip Campbell
