13231
|
1 " CHICKEN-specific Vim customizations
|
|
2 " Last Change: 2018-01-06
|
|
3 " Author: Evan Hanson <evhan@foldling.org>
|
|
4 " Maintainer: Evan Hanson <evhan@foldling.org>
|
|
5 " URL: https://foldling.org/vim/ftplugin/chicken.vim
|
|
6 " Notes: These are supplemental settings, to be loaded after the core
|
|
7 " Scheme ftplugin file (ftplugin/scheme.vim). Enable it by setting
|
|
8 " b:is_chicken=1 and filetype=scheme.
|
|
9
|
|
10 if !exists('b:did_scheme_ftplugin')
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 setl keywordprg=chicken-doc
|
|
15
|
|
16 setl lispwords+=and-let*
|
|
17 setl lispwords+=begin-for-syntax
|
|
18 setl lispwords+=compiler-typecase
|
|
19 setl lispwords+=condition-case
|
|
20 setl lispwords+=define-compiler-syntax
|
|
21 setl lispwords+=define-constant
|
|
22 setl lispwords+=define-external
|
|
23 setl lispwords+=define-for-syntax
|
|
24 setl lispwords+=define-inline
|
|
25 setl lispwords+=define-record
|
|
26 setl lispwords+=define-record-printer
|
|
27 setl lispwords+=define-specialization
|
|
28 setl lispwords+=define-syntax-rule
|
|
29 setl lispwords+=eval-when
|
|
30 setl lispwords+=fluid-let
|
|
31 setl lispwords+=handle-exceptions
|
|
32 setl lispwords+=let-compiler-syntax
|
|
33 setl lispwords+=let-optionals
|
|
34 setl lispwords+=let-optionals*
|
|
35 setl lispwords+=letrec-values
|
|
36 setl lispwords+=match
|
|
37 setl lispwords+=match-lambda
|
|
38 setl lispwords+=match-lambda*
|
|
39 setl lispwords+=match-let
|
|
40 setl lispwords+=match-let*
|
|
41 setl lispwords+=module
|
|
42 setl lispwords+=receive
|
|
43 setl lispwords+=select
|
|
44 setl lispwords+=set!-values
|
|
45
|
|
46 let b:undo_ftplugin = b:undo_ftplugin . ' keywordprg<'
|
|
47
|
|
48 if exists('g:loaded_matchit') && !exists('b:match_words')
|
|
49 let b:match_words = '#>:<#'
|
|
50 let b:undo_ftplugin = b:undo_ftplugin . ' | unlet! b:match_words'
|
|
51 endif
|