1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-21 17:25:11 +01:00
vim/runtime/ftplugin/scheme.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.6 KiB
VimL
Raw Normal View History

2018-02-09 22:00:53 +01:00
" Vim filetype plugin file
" 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>
" 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:\|#
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
setl formatoptions-=t
2012-01-10 14:55:01 +01: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
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
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