~ubuntu-branches/ubuntu/vivid/vim/vivid

« back to all changes in this revision

Viewing changes to runtime/ftplugin/dtrace.vim

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-11-05 11:37:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081105113743-9i4urcsm3n44mhqe
Tags: 2:7.2.025-2ubuntu1
* Merge from debian unstable, remaining changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
8
if exists("b:did_ftplugin")
 
9
  finish
 
10
endif
 
11
 
 
12
" Don't load another plugin for this buffer
 
13
let b:did_ftplugin = 1
 
14
 
 
15
" Using line continuation here.
 
16
let s:cpo_save = &cpo
 
17
set cpo-=C
 
18
 
 
19
let 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".
 
23
setlocal fo-=t fo+=croql
 
24
 
 
25
" Set 'comments' to format dashed lists in comments.
 
26
setlocal 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)
 
30
setlocal commentstring=/*%s*/
 
31
 
 
32
setlocal iskeyword+=@,$
 
33
 
 
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'
 
38
 
 
39
let &cpo = s:cpo_save
 
40
unlet s:cpo_save