~ubuntu-branches/ubuntu/edgy/vim/edgy-updates

« back to all changes in this revision

Viewing changes to debian/patches/133_filetype.vim.diff

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-02 13:55:52 UTC
  • Revision ID: james.westby@ubuntu.com-20060202135552-o60gcf576osqpmcg
Tags: 1:6.4-006+2ubuntu1
* Synchronize with Debian unstable.
* Convert Ubuntu patches to use quilt.
* Re-register alternative for `editor'.
* Install .desktop file again, add attribute NoDisplay=true.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -urN vim63/runtime/filetype.vim vim63.new/runtime/filetype.vim
2
 
--- vim63/runtime/filetype.vim  2005-08-12 11:32:00.000000000 +0200
3
 
+++ vim63.new/runtime/filetype.vim      2005-08-12 11:31:38.000000000 +0200
4
 
@@ -376,7 +376,14 @@
5
 
        \ endif
6
 
 
7
 
 " Cobol
8
 
-au BufNewFile,BufRead *.cbl,*.cob,*.cpy,*.lib  setf cobol
9
 
+au BufNewFile,BufRead *.cbl,*.cob,*.lib        setf cobol
10
 
+"   cobol or zope form controller python script? (heuristic)
11
 
+au BufNewFile,BufRead *.cpy
12
 
+       \ if getline(1) =~ '^##' |
13
 
+       \   setf python |
14
 
+       \ else |
15
 
+       \   setf cobol |
16
 
+       \ endif
17
 
 
18
 
 " Cold Fusion
19
 
 au BufNewFile,BufRead *.cfm,*.cfi,*.cfc                setf cf
20
 
@@ -1615,6 +1622,13 @@
21
 
 " Yaml
22
 
 au BufNewFile,BufRead *.yaml,*.yml             setf yaml
23
 
 
24
 
+" Zope
25
 
+"   dtml (zope dynamic template markup language), pt (zope page template),
26
 
+"   cpt (zope form controller page template)
27
 
+au BufNewFile,BufRead *.dtml,*.pt,*.cpt                call <SID>FTCheck_html()
28
 
+"   zsql (zope sql method)
29
 
+au BufNewFile,BufRead *.zsql                   setf sql
30
 
+
31
 
 " Z80 assembler asz80
32
 
 au BufNewFile,BufRead *.z8a                    setf z8a
33