1 " Vim filetype plugin file
3 " Maintainer: Tim Allen <screwtape@froup.com>
4 " Last Change: 2011 Apr 05
6 " Only do this when not done yet for this buffer
7 if exists("b:did_ftplugin")
10 let b:did_ftplugin = 1
12 " Code formatting settings loosely adapted from:
13 " http://concatenative.org/wiki/view/Factor/Coding%20Style
15 " Tabs are not allowed in Factor source files; use four spaces instead.
16 setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
18 " Try to limit lines to 64 characters, except for documentation, which can be
20 if expand("%:t") !~ "-docs\.factor$"
23 " Mark anything in column 64 or beyond as a syntax error.
24 match Error /\%>63v.\+/
27 " Teach Vim what comments look like.
28 setlocal comments+=b:!,b:#!