Showing posts with label filetype. Show all posts
Showing posts with label filetype. Show all posts

Friday, December 12, 2008

Setting the Filetype

Vim normally sets the current filetype automatically and very accurately at that. In some cases though, such as when you're starting a file from scratch, it doesn't know the filetype. In these cases, you can set the filetype manually.

:set filetype=perl
:set filetype=php
:set filetype=python

etc...