blob: 9b20ec4766ccfa98271e98e358ea3bcc0ec97fa3 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: Aap recipe
3" Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaarbf884932013-04-05 22:26:15 +02004" Last Change: 2013 Apr 05
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6" Only do this when not done yet for this buffer
7if exists("b:did_ftplugin")
8 finish
9endif
10
11" Don't load another plugin for this buffer
12let b:did_ftplugin = 1
13
14" Reset 'formatoptions', 'comments' and 'expandtab' to undo this plugin.
15let b:undo_ftplugin = "setl fo< com< et<"
16
17" Set 'formatoptions' to break comment lines but not other lines,
18" and insert the comment leader when hitting <CR> or using "o".
19setlocal fo-=t fo+=croql
20
21" Set 'comments' to format dashed lists in comments.
Bram Moolenaarbf884932013-04-05 22:26:15 +020022setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:-
Bram Moolenaar071d4272004-06-13 20:20:40 +000023
24" Expand tabs to spaces to avoid trouble.
25setlocal expandtab