]> gitweb.factorcode.org Git - factor.git/blob - misc/vim/ftplugin/factor_settings.vim
Merge branch 'master' into experimental
[factor.git] / misc / vim / ftplugin / factor_settings.vim
1 " Code formatting settings loosely adapted from:
2 " http://concatenative.org/wiki/view/Factor/Coding%20Style
3
4 " Tabs are not allowed in Factor source files; use four spaces instead.
5 setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
6
7 " Try to limit lines to 64 characters, except for documentation, which can be
8 " any length.
9 if expand("%:t") !~ "-docs\.factor$"
10     setlocal textwidth=64
11
12     " Mark anything in column 64 or beyond as a syntax error.
13     match Error /\%>63v.\+/
14 endif
15
16 " Teach Vim what comments look like.
17 setlocal comments+=b:!,b:#!