Install vim73
[msysgit/kirr.git] / share / vim / vim73 / ftplugin / dtrace.vim
blob9288097f7fe16b51692299b7db88a5d152e63ae0
1 " Language: D script as described in "Solaris Dynamic Tracing Guide",
2 "           http://docs.sun.com/app/docs/doc/817-6223
3 " Last Change: 2008/03/20
4 " Version: 1.2
5 " Maintainer: Nicolas Weber <nicolasweber@gmx.de>
7 " Only do this when not done yet for this buffer
8 if exists("b:did_ftplugin")
9   finish
10 endif
12 " Don't load another plugin for this buffer
13 let b:did_ftplugin = 1
15 " Using line continuation here.
16 let s:cpo_save = &cpo
17 set cpo-=C
19 let b:undo_ftplugin = "setl fo< com< cms< isk<"
21 " Set 'formatoptions' to break comment lines but not other lines,
22 " and insert the comment leader when hitting <CR> or using "o".
23 setlocal fo-=t fo+=croql
25 " Set 'comments' to format dashed lists in comments.
26 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/
28 " dtrace uses /* */ comments. Set this explicitly, just in case the user
29 " changed this (/*%s*/ is the default)
30 setlocal commentstring=/*%s*/
32 setlocal iskeyword+=@,$
34 " When the matchit plugin is loaded, this makes the % command skip parens and
35 " braces in comments.
36 let b:match_words = &matchpairs
37 let b:match_skip = 's:comment\|string\|character'
39 let &cpo = s:cpo_save
40 unlet s:cpo_save