2018-10-28 06:05:39 -07:00
|
|
|
" Vim filetype plugin file
|
|
|
|
" Language: Scheme (R7RS)
|
|
|
|
" Last Change: 2018-01-20
|
|
|
|
" 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')
|
2014-07-10 21:05:51 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2018-10-28 06:05:39 -07:00
|
|
|
let s:cpo = &cpo
|
|
|
|
set cpo&vim
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
setl lisp
|
2018-10-28 06:05:39 -07:00
|
|
|
setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,ex:\|#
|
2014-07-10 21:05:51 -07:00
|
|
|
setl commentstring=;%s
|
2018-10-28 06:05:39 -07:00
|
|
|
setl define=^\\s*(def\\k*
|
|
|
|
setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2018-10-28 06:05:39 -07:00
|
|
|
let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword<'
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2018-10-28 06:05:39 -07:00
|
|
|
setl lispwords=begin
|
|
|
|
setl lispwords+=case
|
|
|
|
setl lispwords+=case-lambda
|
|
|
|
setl lispwords+=cond
|
|
|
|
setl lispwords+=cond-expand
|
|
|
|
setl lispwords+=define
|
|
|
|
setl lispwords+=define-record-type
|
|
|
|
setl lispwords+=define-syntax
|
|
|
|
setl lispwords+=define-values
|
|
|
|
setl lispwords+=do
|
|
|
|
setl lispwords+=guard
|
|
|
|
setl lispwords+=import
|
|
|
|
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<'
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2018-10-28 06:05:39 -07:00
|
|
|
let b:did_scheme_ftplugin = 1
|
|
|
|
|
|
|
|
if exists('b:is_chicken') || exists('g:is_chicken')
|
|
|
|
exe 'ru! ftplugin/chicken.vim'
|
2014-07-10 21:05:51 -07:00
|
|
|
endif
|
|
|
|
|
2018-10-28 06:05:39 -07:00
|
|
|
unlet b:did_scheme_ftplugin
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
let &cpo = s:cpo
|
|
|
|
unlet s:cpo
|