annotate runtime/ftplugin/occam.vim @ 40:01573c245f15

fix for remote editor
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Sat, 18 Dec 2010 18:47:04 +0900
parents 76efa0be13f1
children 67300faee616
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim filetype plugin file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: occam
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Copyright: Christian Jacobsen <clj3@kent.ac.uk>, Mario Schweigler <ms44@kent.ac.uk>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Maintainer: Mario Schweigler <ms44@kent.ac.uk>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 " Last Change: 23 April 2003
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 " Only do this when not done yet for this buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 if exists("b:did_ftplugin")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 let b:did_ftplugin = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 "{{{ Indent settings
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 " Set shift width for indent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 setlocal shiftwidth=2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 " Set the tab key size to two spaces
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 setlocal softtabstop=2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 " Let tab keys always be expanded to spaces
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 setlocal expandtab
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 "}}}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 "{{{ Formatting
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 " Break comment lines and insert comment leader in this case
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 setlocal formatoptions-=t formatoptions+=cql
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 setlocal comments+=:--
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 " Maximum length of comments is 78
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 setlocal textwidth=78
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 "}}}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 "{{{ File browsing filters
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 " Win32 can filter files in the browse dialog
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 if has("gui_win32") && !exists("b:browsefilter")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 let b:browsefilter = "All Occam Files (*.occ *.inc)\t*.occ;*.inc\n" .
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 \ "Occam Include Files (*.inc)\t*.inc\n" .
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 \ "Occam Source Files (*.occ)\t*.occ\n" .
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 \ "All Files (*.*)\t*.*\n"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 "}}}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39