blob: 3e4ca4b6055bffae62c26174d7974436bd495dd8 [file] [log] [blame]
Bram Moolenaar748bf032005-02-02 23:04:36 +00001" Vim filetype plugin file
2" Language: VHDL
3" Maintainer: R.Shankar (shankar at txc.stpn.soft.net)
4" Last Change: Tue Oct 8
5
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" Set 'formatoptions' to break comment lines but not other lines,
16" and insert the comment leader when hitting <CR> or using "o".
17"setlocal fo-=t fo+=croqlm1
18
19" Set 'comments' to format dashed lists in comments.
20"setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
21
22" Format comments to be up to 78 characters long
23setlocal tw=75
24
25set cpo-=C
26
27" Win32 can filter files in the browse dialog
28"if has("gui_win32") && !exists("b:browsefilter")
29" let b:browsefilter = "Verilog Source Files (*.v)\t*.v\n" .
30" \ "All Files (*.*)\t*.*\n"
31"endif
32
33" Let the matchit plugin know what items can be matched.
34if ! exists("b:match_words") && exists("loaded_matchit")
35 let b:match_ignorecase=1
36 let s:notend = '\%(\<end\s\+\)\@<!'
37 let b:match_words=
38 \ s:notend . '\<if\>:\<elsif\>:\<else\>:\<end\>\s\+\<if\>,' .
39 \ s:notend . '\<case\>:\<when\>:\<end\>\s\+\<case\>,' .
40 \ s:notend . '\<process\>:\<end\>\s\+\<process\>'
41endif