annotate runtime/ftplugin/scheme.vim @ 4359:6d45e6f97415 v7.3.928

updated for version 7.3.928 Problem: Can't build with strict C compiler. Solution: Move declaration to start of block. (Taro Muraoka)
author Bram Moolenaar <bram@vim.org>
date Mon, 06 May 2013 06:26:15 +0200
parents 61bcafd8c648
children 9521463d4fc1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Scheme
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
3 " Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
4 " URL: http://sites.google.com/site/khorser/opensource/vim
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
5 " Original author: Dorai Sitaram <ds26@gte.com>
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
6 " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
7 " Last Change: Feb 12, 2013
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
8
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
9 " Only do this when not done yet for this buffer
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
10 if exists("b:did_ftplugin")
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
11 finish
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
12 endif
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
13
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
14 " Don't load another plugin for this buffer
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
15 let b:did_ftplugin = 1
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
16
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
17 " Copy-paste from ftplugin/lisp.vim
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
18 setl comments=:;
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
19 setl define=^\\s*(def\\k*
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
20 setl formatoptions-=t
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
21 setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
22 setl lisp
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
23 setl commentstring=;%s
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
25 " make comments behaviour like in c.vim
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
26 " e.g. insertion of ;;; and ;; on normal "O" or "o" when staying in comment
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
27 setl comments^=:;;;,:;;,sr:#\|,mb:\|,ex:\|#
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
28 setl formatoptions+=croql
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
29
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
30 " Scheme-specific settings
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
31 if exists("b:is_mzscheme") || exists("is_mzscheme")
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
32 " improve indenting
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
33 setl iskeyword+=#,%,^
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
34 setl lispwords+=module,parameterize,let-values,let*-values,letrec-values
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
35 setl lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
36 setl lispwords+=define-signature,unit,unit/sig,compund-unit/sig,define-values/invoke-unit/sig
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
37 endif
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
38
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
39 if exists("b:is_chicken") || exists("is_chicken")
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
40 " improve indenting
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
41 setl iskeyword+=#,%,^
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
42 setl lispwords+=let-optionals,let-optionals*,declare
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
43 setl lispwords+=let-values,let*-values,letrec-values
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
44 setl lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
45 setl lispwords+=cond-expand,and-let*,foreign-lambda,foreign-lambda*
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
46 endif
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
47
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
48 let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lispwords< lisp< commentstring<"