From: "Aaron Johnson", Fri, September 08, 2006 1:32 pm > > How can I include vim settings in the files I'm editing? For > example, if system wide I have syntax highlighting disabled but I > want to enable it just for one particular file. For c code I'd like > to be able to include something like this: > > /* > * ?:syntax on > */ > > It would have to always always be commented obviously, and the '?:' > would trigger reading those lines as vim options.
You want to use modelines: :help auto-setting :help modeline -- Steve Hall [ digitect dancingpaper com ]