Modelines

Is your first time on TechnoSNACK? Subscribe our feeds!  


Vim allows you to insert modelines to specify options you'd like for a specific file. For example, you could have a perl script as follows:

#!/usr/bin/perl
# vim: set expandtab:
use strict;

This would tell Vim to expand tabs in the current file. See :help modeline for more info.

SOURCE: http://dailyvim.blogspot.com/

Discussion Area - Leave a Comment