aboutsummaryrefslogtreecommitdiff
path: root/support/vim/ftplugin/taf.vim
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-02-13 00:20:34 +0000
committerMike Buland <eichlan@xagasoft.com>2008-02-13 00:20:34 +0000
commitc9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6 (patch)
tree9eb0ed622835b0e59cc156a08de9313a2c71d0a9 /support/vim/ftplugin/taf.vim
parent5093edfb74b24c5782591af0d85134c295c6b0e6 (diff)
downloadlibbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.tar.gz
libbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.tar.bz2
libbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.tar.xz
libbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.zip
Added the support tree and the new taf vim hilighter.
Diffstat (limited to '')
-rw-r--r--support/vim/ftplugin/taf.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/support/vim/ftplugin/taf.vim b/support/vim/ftplugin/taf.vim
new file mode 100644
index 0000000..7b774cc
--- /dev/null
+++ b/support/vim/ftplugin/taf.vim
@@ -0,0 +1,23 @@
1" Vim filetype plugin file
2" Language: Taf
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++
17setlocal 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 = "Textual Archive Format (*.taf)\t*.taf\n" .
22 \ "All Files (*.*)\t*.*\n"
23endif