Mercurial > vim
annotate runtime/ftplugin/occam.vim @ 11167:260100346566 v8.0.0470
patch 8.0.0470: not enough testing for help commands
commit https://github.com/vim/vim/commit/751ba616d1c47de2c273b269df06c36a7ed141a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 22:26:44 2017 +0100
patch 8.0.0470: not enough testing for help commands
Problem: Not enough testing for help commands.
Solution: Add a few more help tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/1565)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 22:30:04 +0100 |
parents | dd6c2497c997 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " 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 | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
11 let b:did_ftplugin = 1 | |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
12 let s:keepcpo= &cpo |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
13 set cpo&vim |
7 | 14 |
15 "{{{ Indent settings | |
16 " Set shift width for indent | |
17 setlocal shiftwidth=2 | |
18 " Set the tab key size to two spaces | |
19 setlocal softtabstop=2 | |
20 " Let tab keys always be expanded to spaces | |
21 setlocal expandtab | |
22 "}}} | |
23 | |
24 "{{{ Formatting | |
25 " Break comment lines and insert comment leader in this case | |
26 setlocal formatoptions-=t formatoptions+=cql | |
27 setlocal comments+=:-- | |
28 " Maximum length of comments is 78 | |
29 setlocal textwidth=78 | |
30 "}}} | |
31 | |
32 "{{{ File browsing filters | |
33 " Win32 can filter files in the browse dialog | |
34 if has("gui_win32") && !exists("b:browsefilter") | |
35 let b:browsefilter = "All Occam Files (*.occ *.inc)\t*.occ;*.inc\n" . | |
36 \ "Occam Include Files (*.inc)\t*.inc\n" . | |
37 \ "Occam Source Files (*.occ)\t*.occ\n" . | |
38 \ "All Files (*.*)\t*.*\n" | |
39 endif | |
40 "}}} | |
41 | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
42 "{{{ Undo settings |
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
43 let b:undo_ftplugin = "setlocal shiftwidth< softtabstop< expandtab<" |
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
44 \ . " formatoptions< comments< textwidth<" |
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
45 \ . "| unlet! b:browsefiler" |
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
46 "}}} |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
47 |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
48 let &cpo = s:keepcpo |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
49 unlet s:keepcpo |