annotate runtime/ftplugin/verilog.vim @ 436:a1c5a6cb2675 v7.0112

updated for version 7.0112
author vimboss
date Thu, 21 Jul 2005 21:11:17 +0000
parents 3fc0f57ecb91
children 35cde31bdcbd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Verilog HDL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Chih-Tsun Huang <cthuang@larc.ee.nthu.edu.tw>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Wed Oct 31 16:16:19 CST 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://larc.ee.nthu.edu.tw/~cthuang/vim/ftplugin/verilog.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " and insert the comment leader when hitting <CR> or using "o".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 setlocal fo-=t fo+=croqlm1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Set 'comments' to format dashed lists in comments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Format comments to be up to 78 characters long
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 setlocal tw=75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Win32 can filter files in the browse dialog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if has("gui_win32") && !exists("b:browsefilter")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let b:browsefilter = "Verilog Source Files (*.v)\t*.v\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \ "All Files (*.*)\t*.*\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Let the matchit plugin know what items can be matched.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if exists("loaded_matchit")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 let b:match_ignorecase=0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 let b:match_words=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 \ '\<begin\>:\<end\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 \ '\<case\>\|\<casex\>\|\<casez\>:\<endcase\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 \ '\<module\>:\<endmodule\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 \ '\<if\>:\<else\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 \ '\<function\>:\<endfunction\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 \ '`ifdef\>:`else\>:`endif\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 \ '\<task\>:\<endtask\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 \ '\<specify\>:\<endspecify\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 endif