On Thu, Feb 21, 2008 at 10:46:03AM +1100, Alex Samad wrote: > On Thu, Feb 21, 2008 at 10:29:59AM +1100, Alex Samad wrote: > > Hi > > > > > > I am a user of vim (learner). I have been getting caught out with the file > > type setting of vim, sometimes it is good an other times it is a pain in the but. > > > > I have done some reading about setting vim options in files. > > > > for example I am editing a makefile and I have placed this line at the bottom > > > > # vim:ft='' > > > > when I load up this file in vim and then execute set ft, it returns makefile, > > which is not what I want, have I typed it wrong or is there some option that I > > need to set ? I'm just wondering, why don't you want the filetype? One of the reasons I started using vim was it's syntax highlighting. > another look and I found what I was looking for, seems like modeline is turned > off in debian, so I have added to my ~/.vimrc a set modeline For security reasons probably. Be careful what files you are loading. Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
Attachment:
signature.asc
Description: Digital signature