From 7c299c86bbac76ec2ac199d68eb4dda093a64e3a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 23 Jun 2026 12:01:35 -0700 Subject: Including vimsyntax plugin. --- extra/vim/ftdetect/crimtag.vim | 1 + extra/vim/ftplugin/crimtag.vim | 24 ++++++++++++++++++++++++ extra/vim/syntax/crimtag.vim | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 extra/vim/ftdetect/crimtag.vim create mode 100644 extra/vim/ftplugin/crimtag.vim create mode 100644 extra/vim/syntax/crimtag.vim diff --git a/extra/vim/ftdetect/crimtag.vim b/extra/vim/ftdetect/crimtag.vim new file mode 100644 index 0000000..46021a0 --- /dev/null +++ b/extra/vim/ftdetect/crimtag.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.crim set filetype=crimtag diff --git a/extra/vim/ftplugin/crimtag.vim b/extra/vim/ftplugin/crimtag.vim new file mode 100644 index 0000000..56571e1 --- /dev/null +++ b/extra/vim/ftplugin/crimtag.vim @@ -0,0 +1,24 @@ +" Vim filetype plugin file +" Language: Crimtag + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif + +" Don't load another plugin for this buffer +let b:did_ftplugin = 1 + +" Set format options -- allow comment formatting with gq, but disable +" other processing +setlocal fo-=tcrowan2 fo+=q + +" Set 'comments' to be the same as C/C++ +" setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// + +" Win32 can filter files in the browse dialog +if has("gui_win32") && !exists("b:browsefilter") + let b:browsefilter = "Crimtag files (*.crim)\t*.crim\n" . + \ "All Files (*.*)\t*.*\n" +endif + diff --git a/extra/vim/syntax/crimtag.vim b/extra/vim/syntax/crimtag.vim new file mode 100644 index 0000000..9a8c3a7 --- /dev/null +++ b/extra/vim/syntax/crimtag.vim @@ -0,0 +1,18 @@ +" Vim syntax file +" Language: Crimtag +" Maintainer: Mike Buland +" File Types: *.crim +" + +if exists("b:current_syntax") + finish +endif + +syn region openTag start=+[[<]|+ end=+|[\]>]+ contains=tagName,params,props +syn match tagName "\(view\|output\|show\|loop\)" contained + +hi def link openTag Tag +hi def link tagName Function + +let b:current_syntax = "crim" + -- cgit v1.2.3