tisp.vim

vim configuration for the tisp langauge
git clone git://edryd.org/tisp.vim
Log | Files | Refs

commit 1acfdb594354ef2332d8df4c97eb1bd38ae8871a
parent f1452112e573ebddbed5ef9dded1e3b9790a269b
Author: Ed van Bruggen <ed@edryd.org>
Date:   Sat, 24 Aug 2024 00:04:21 -0400

Fold sections denoted by three semicolons

Diffstat:
Mftplugin/tisp.vim | 4+++-
Mindent/tisp.vim | 2+-
Msyntax/tisp.vim | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ftplugin/tisp.vim b/ftplugin/tisp.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: tisp " Author: Ed van Bruggen <ed@edryd.org> -" URL: edryd.org/projects/tisp.html +" URL: edryd.org/projects/tisp if exists("b:did_ftplugin") finish @@ -15,6 +15,8 @@ setl define=^\\s*(def\\k* setl formatoptions-=t setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94 setl lispwords+=def,recur,switch +setl foldmethod=expr +setl foldexpr=getline(v:lnum)=~'^;;;'?'>1':1 if exists('g:paredit_loaded') call PareditInitBuffer() diff --git a/indent/tisp.vim b/indent/tisp.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: tisp " Author: Ed van Bruggen <ed@edryd.org> -" URL: edryd.org/projects/tisp.html +" URL: edryd.org/projects/tisp if exists("b:did_indent") finish diff --git a/syntax/tisp.vim b/syntax/tisp.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: tisp " Author: Ed van Bruggen <ed@edryd.org> -" URL: edryd.org/projects/tisp.html +" URL: edryd.org/projects/tisp if version < 600 syntax clear