Add more Vim support files.
parent
2e731c63f2
commit
8998f21aa6
|
@ -9,6 +9,10 @@ into ~/.vim/ or the equivalent path on other platforms (Open Vim and type
|
||||||
|
|
||||||
The current set of files is as follows:
|
The current set of files is as follows:
|
||||||
|
|
||||||
|
ftdetect/factor.vim
|
||||||
|
Teach Vim when to load Factor support files.
|
||||||
|
ftplugin/factor_settings.vim
|
||||||
|
Teach Vim to follow the Factor Coding Style guidelines.
|
||||||
syntax/factor.vim
|
syntax/factor.vim
|
||||||
Syntax highlighting for Factor code.
|
Syntax highlighting for Factor code.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
autocmd BufRead,BufNewFile *.factor,{,.}factor*-rc set filetype=factor
|
|
@ -0,0 +1,17 @@
|
||||||
|
" Code formatting settings loosely adapted from:
|
||||||
|
" http://concatenative.org/wiki/view/Factor/Coding%20Style
|
||||||
|
|
||||||
|
" Tabs are not allowed in Factor source files; use four spaces instead.
|
||||||
|
setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
|
||||||
|
|
||||||
|
" Try to limit lines to 64 characters, except for documentation, which can be
|
||||||
|
" any length.
|
||||||
|
if expand("%:t") !~ "-docs\.factor$"
|
||||||
|
setlocal textwidth=64
|
||||||
|
|
||||||
|
" Mark anything in column 64 or beyond as a syntax error.
|
||||||
|
match Error /\%>63v.\+/
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Teach Vim what comments look like.
|
||||||
|
setlocal comments+=b:!,b:#!
|
Loading…
Reference in New Issue