2018-02-09 22:00:53 +01:00
|
|
|
" Vim filetype plugin file
|
2024-06-21 07:37:49 +02:00
|
|
|
" Language: Scheme (R7RS)
|
|
|
|
" Last Change: 2024 Jun 21
|
|
|
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
|
|
|
" Author: Evan Hanson <evhan@foldling.org>
|
|
|
|
" Maintainer: Evan Hanson <evhan@foldling.org>
|
2018-02-09 22:00:53 +01:00
|
|
|
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
|
2024-06-21 07:37:49 +02:00
|
|
|
" Repository: https://git.foldling.org/vim-scheme.git
|
|
|
|
" URL: https://foldling.org/vim/ftplugin/scheme.vim
|
2018-02-09 22:00:53 +01:00
|
|
|
|
|
|
|
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:\|#
|
2024-06-03 20:40:45 +02: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
|
2024-06-21 07:37:49 +02:00
|
|
|
setl formatoptions-=t
|
2012-01-10 14:55:01 +01:00
|
|
|
|
2024-06-21 07:37:49 +02:00
|
|
|
let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword< formatoptions<'
|
2004-12-09 21:34:53 +00:00
|
|
|
|
2019-11-20 22:31:13 +01:00
|
|
|
setl lispwords+=case
|
2018-02-09 22:00:53 +01:00
|
|
|
setl lispwords+=define
|
2024-06-21 07:37:49 +02:00
|
|
|
setl lispwords+=define-library
|
2018-02-09 22:00:53 +01:00
|
|
|
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')
|
2021-08-14 21:25:52 +02:00
|
|
|
runtime! 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
|