blob: ed2c4f4ea391d7179b3fdeb33fdd92f13ff48a9a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: occam
3" Copyright: Christian Jacobsen <clj3@kent.ac.uk>, Mario Schweigler <ms44@kent.ac.uk>
4" Maintainer: Mario Schweigler <ms44@kent.ac.uk>
5" Last Change: 23 April 2003
6
7" Only do this when not done yet for this buffer
8if exists("b:did_ftplugin")
9 finish
10endif
11let b:did_ftplugin = 1
12
13"{{{ Indent settings
14" Set shift width for indent
15setlocal shiftwidth=2
16" Set the tab key size to two spaces
17setlocal softtabstop=2
18" Let tab keys always be expanded to spaces
19setlocal expandtab
20"}}}
21
22"{{{ Formatting
23" Break comment lines and insert comment leader in this case
24setlocal formatoptions-=t formatoptions+=cql
25setlocal comments+=:--
26" Maximum length of comments is 78
27setlocal textwidth=78
28"}}}
29
30"{{{ File browsing filters
31" Win32 can filter files in the browse dialog
32if has("gui_win32") && !exists("b:browsefilter")
33 let b:browsefilter = "All Occam Files (*.occ *.inc)\t*.occ;*.inc\n" .
34 \ "Occam Include Files (*.inc)\t*.inc\n" .
35 \ "Occam Source Files (*.occ)\t*.occ\n" .
36 \ "All Files (*.*)\t*.*\n"
37endif
38"}}}
39