Mercurial > vim
annotate runtime/ftplugin/scheme.vim @ 12289:294f510f6d35 v8.0.1024
patch 8.0.1024: folds lost when session file has a buffer in two windows
commit https://github.com/vim/vim/commit/4bebc9a0565670b853d227f81a9a31eafdb47eed
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 30 21:07:38 2017 +0200
patch 8.0.1024: folds lost when session file has a buffer in two windows
Problem: Manual folds are lost when a session file has the same buffer in
two windows. (Jeansen)
Solution: Use ":edit" only once. (Christian Brabandt, closes #1958)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 30 Aug 2017 21:15:04 +0200 |
parents | 9521463d4fc1 |
children | 167a030448fa |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin |
2 " Language: Scheme | |
36 | 3 " Maintainer: Sergey Khorev <sergey.khorev@gmail.com> |
3256 | 4 " URL: http://sites.google.com/site/khorser/opensource/vim |
36 | 5 " Original author: Dorai Sitaram <ds26@gte.com> |
6 " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html | |
5425 | 7 " Last Change: Oct 23, 2013 |
3256 | 8 |
9 " Only do this when not done yet for this buffer | |
10 if exists("b:did_ftplugin") | |
11 finish | |
12 endif | |
13 | |
14 " Don't load another plugin for this buffer | |
15 let b:did_ftplugin = 1 | |
36 | 16 |
3256 | 17 " Copy-paste from ftplugin/lisp.vim |
18 setl comments=:; | |
19 setl define=^\\s*(def\\k* | |
20 setl formatoptions-=t | |
21 setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94 | |
22 setl lisp | |
4119 | 23 setl commentstring=;%s |
7 | 24 |
3256 | 25 setl comments^=:;;;,:;;,sr:#\|,mb:\|,ex:\|# |
26 | |
27 " Scheme-specific settings | |
36 | 28 if exists("b:is_mzscheme") || exists("is_mzscheme") |
29 " improve indenting | |
30 setl iskeyword+=#,%,^ | |
31 setl lispwords+=module,parameterize,let-values,let*-values,letrec-values | |
32 setl lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case | |
33 setl lispwords+=define-signature,unit,unit/sig,compund-unit/sig,define-values/invoke-unit/sig | |
34 endif | |
35 | |
36 if exists("b:is_chicken") || exists("is_chicken") | |
37 " improve indenting | |
38 setl iskeyword+=#,%,^ | |
39 setl lispwords+=let-optionals,let-optionals*,declare | |
40 setl lispwords+=let-values,let*-values,letrec-values | |
41 setl lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case | |
42 setl lispwords+=cond-expand,and-let*,foreign-lambda,foreign-lambda* | |
43 endif | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3256
diff
changeset
|
44 |
4119 | 45 let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lispwords< lisp< commentstring<" |