tag:blogger.com,1999:blog-6637736252081011583.post1323571326747665624..comments2023-10-23T11:13:47.199-07:00Comments on Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Setting the FiletypeTravis Whittonhttp://www.blogger.com/profile/14592647486468034166noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6637736252081011583.post-64084040872440063192010-01-06T11:27:56.578-08:002010-01-06T11:27:56.578-08:00To see the current filetype:
:set filetypeTo see the current filetype:<br /><br />:set filetypeUnknownhttps://www.blogger.com/profile/07971534272867956015noreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-14731732090818694022009-01-04T03:46:00.000-08:002009-01-04T03:46:00.000-08:00And how can I get the value of filetype? (If it's ...And how can I get the value of filetype? (If it's possible, of course.)Дожhttps://www.blogger.com/profile/12815369560352263261noreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-30137805970842182812008-12-12T10:45:00.000-08:002008-12-12T10:45:00.000-08:00Be warned that :setf won't change 'ft' if it has a...Be warned that :setf won't change 'ft' if it has already been set to something else.<BR/><BR/>Also, if you start a new file with the name and extension you intent to call it, vim will set the filetype for you.graywhhttps://www.blogger.com/profile/14008240961525657558noreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-60612670205583510112008-12-12T10:35:00.000-08:002008-12-12T10:35:00.000-08:00Even shorter!:set ft=perl...or...:setf perlEven shorter!<BR/><BR/>:set ft=perl<BR/><BR/>...or...<BR/><BR/>:setf perlAnonymousnoreply@blogger.com