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> 6 7" Only do this when not done yet for this buffer 8if exists("b:did_ftplugin") 9 finish 10endif 11 12" Don't load another plugin for this buffer 13let b:did_ftplugin = 1 14 15" Using line continuation here. 16let s:cpo_save = &cpo 17set cpo-=C 18 19let b:undo_ftplugin = "setl fo< com< cms< isk<" 20 21" Set 'formatoptions' to break comment lines but not other lines, 22" and insert the comment leader when hitting <CR> or using "o". 23setlocal fo-=t fo+=croql 24 25" Set 'comments' to format dashed lists in comments. 26setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/ 27 28" dtrace uses /* */ comments. Set this explicitly, just in case the user 29" changed this (/*%s*/ is the default) 30setlocal commentstring=/*%s*/ 31 32setlocal iskeyword+=@,$ 33 34" When the matchit plugin is loaded, this makes the % command skip parens and 35" braces in comments. 36let b:match_words = &matchpairs 37let b:match_skip = 's:comment\|string\|character' 38 39let &cpo = s:cpo_save 40unlet s:cpo_save 41