ソースコードのコメント部分

vim は、ソースコード中でコメント部分を利用してインデントの指定ができる。
vim の main.c を見ると、

/* vi:set ts=8 sts=4 sw=4:
 *
 * VIM - Vi IMproved	by Bram Moolenaar
 *
 * Do ":help uganda"  in Vim to read copying and usage conditions.
 * Do ":help credits" in Vim to see a list of people who contributed.
 * See README.txt for an overview of the Vim source code.
 */

のようになっており、1行目の"vi:set ts=8 sts=4 sw=4:" で指定しているようです。