annotate runtime/ftplugin/aap.vim @ 0:76efa0be13f1

Initial revision
author atsuki
date Sat, 10 Nov 2007 15:07:22 +0900
parents
children
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: Aap recipe
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Last Change: 2003 Nov 04
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 " Only do this when not done yet for this buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 if exists("b:did_ftplugin")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 " Don't load another plugin for this buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 let b:did_ftplugin = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 " Reset 'formatoptions', 'comments' and 'expandtab' to undo this plugin.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 let b:undo_ftplugin = "setl fo< com< et<"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 " Set 'formatoptions' to break comment lines but not other lines,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 " and insert the comment leader when hitting <CR> or using "o".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 setlocal fo-=t fo+=croql
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 " Set 'comments' to format dashed lists in comments.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 setlocal comments=s:#\ -,m:#\ \,e:#,n:#,fb:-
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 " Expand tabs to spaces to avoid trouble.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 setlocal expandtab