summaryrefslogtreecommitdiff
path: root/extra/vim
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2026-06-23 12:01:35 -0700
committerMike Buland <mike@xagasoft.com>2026-06-23 12:01:35 -0700
commit7c299c86bbac76ec2ac199d68eb4dda093a64e3a (patch)
tree22418f76232acfdd8c5b310a2cb34002763fafb9 /extra/vim
parentdad9a94d2bf494c27d829f2032d4d8bc7ad36ae9 (diff)
downloadcrimtag-7c299c86bbac76ec2ac199d68eb4dda093a64e3a.tar.gz
crimtag-7c299c86bbac76ec2ac199d68eb4dda093a64e3a.tar.bz2
crimtag-7c299c86bbac76ec2ac199d68eb4dda093a64e3a.tar.xz
crimtag-7c299c86bbac76ec2ac199d68eb4dda093a64e3a.zip
Including vimsyntax plugin.
Diffstat (limited to 'extra/vim')
-rw-r--r--extra/vim/ftdetect/crimtag.vim1
-rw-r--r--extra/vim/ftplugin/crimtag.vim24
-rw-r--r--extra/vim/syntax/crimtag.vim18
3 files changed, 43 insertions, 0 deletions
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 @@
1" Vim filetype plugin file
2" Language: Crimtag
3
4" Only do this when not done yet for this buffer
5if exists("b:did_ftplugin")
6 finish
7endif
8
9" Don't load another plugin for this buffer
10let b:did_ftplugin = 1
11
12" Set format options -- allow comment formatting with gq, but disable
13" other processing
14setlocal fo-=tcrowan2 fo+=q
15
16" Set 'comments' to be the same as C/C++
17" setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
18
19" Win32 can filter files in the browse dialog
20if has("gui_win32") && !exists("b:browsefilter")
21 let b:browsefilter = "Crimtag files (*.crim)\t*.crim\n" .
22 \ "All Files (*.*)\t*.*\n"
23endif
24
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 @@
1" Vim syntax file
2" Language: Crimtag
3" Maintainer: Mike Buland
4" File Types: *.crim
5"
6
7if exists("b:current_syntax")
8 finish
9endif
10
11syn region openTag start=+[[<]|+ end=+|[\]>]+ contains=tagName,params,props
12syn match tagName "\(view\|output\|show\|loop\)" contained
13
14hi def link openTag Tag
15hi def link tagName Function
16
17let b:current_syntax = "crim"
18