2018-02-09 22:00:53 +01:00
|
|
|
" Vim filetype plugin file
|
|
|
|
" Language: Scheme (R7RS)
|
2018-03-09 22:22:21 +01:00
|
|
|
" Last Change: 2018-03-05
|
2018-02-09 22:00:53 +01:00
|
|
|
" Author: Evan Hanson <evhan@foldling.org>
|
|
|
|
" Maintainer: Evan Hanson <evhan@foldling.org>
|
|
|
|
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
|
|
|
|
" URL: https://foldling.org/vim/ftplugin/scheme.vim
|
|
|
|
|
|
|
|
if exists('b:did_ftplugin')
|
2012-01-10 14:55:01 +01:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2018-02-09 22:00:53 +01:00
|
|
|
let s:cpo = &cpo
|
|
|
|
set cpo&vim
|
2012-01-10 14:55:01 +01:00
|
|
|
|
|
|
|
setl lisp
|
2018-03-09 22:22:21 +01:00
|
|
|
setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
|
2013-02-13 16:15:55 +01:00
|
|
|
setl commentstring=;%s
|
2018-02-09 22:00:53 +01:00
|
|
|
setl define=^\\s*(def\\k*
|
|
|
|
setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
|
2012-01-10 14:55:01 +01:00
|
|
|
|
2018-02-09 22:00:53 +01:00
|
|
|
let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword<'
|
2004-12-09 21:34:53 +00:00
|
|
|
|
2018-03-09 22:22:21 +01:00
|
|
|
setl lispwords=case
|
2018-02-09 22:00:53 +01:00
|
|
|
setl lispwords+=define
|
|
|
|
setl lispwords+=define-record-type
|
|
|
|
setl lispwords+=define-syntax
|
|
|
|
setl lispwords+=define-values
|
|
|
|
setl lispwords+=do
|
|
|
|
setl lispwords+=guard
|
|
|
|
setl lispwords+=lambda
|
|
|
|
setl lispwords+=let
|
|
|
|
setl lispwords+=let*
|
|
|
|
setl lispwords+=let*-values
|
|
|
|
setl lispwords+=let-syntax
|
|
|
|
setl lispwords+=let-values
|
|
|
|
setl lispwords+=letrec
|
|
|
|
setl lispwords+=letrec*
|
|
|
|
setl lispwords+=letrec-syntax
|
|
|
|
setl lispwords+=parameterize
|
|
|
|
setl lispwords+=set!
|
|
|
|
setl lispwords+=syntax-rules
|
|
|
|
setl lispwords+=unless
|
|
|
|
setl lispwords+=when
|
|
|
|
|
|
|
|
let b:undo_ftplugin = b:undo_ftplugin . ' lispwords<'
|
2004-12-09 21:34:53 +00:00
|
|
|
|
2018-02-09 22:00:53 +01:00
|
|
|
let b:did_scheme_ftplugin = 1
|
|
|
|
|
|
|
|
if exists('b:is_chicken') || exists('g:is_chicken')
|
|
|
|
exe 'ru! ftplugin/chicken.vim'
|
2004-12-09 21:34:53 +00:00
|
|
|
endif
|
2012-03-11 15:57:40 +01:00
|
|
|
|
2018-02-09 22:00:53 +01:00
|
|
|
unlet b:did_scheme_ftplugin
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
let &cpo = s:cpo
|
|
|
|
unlet s:cpo
|