blob: 3d9e7835d03f9aba0a5434356490f6ec91cc3546 [file] [log] [blame]
Bram Moolenaardbc28022014-07-26 13:40:44 +02001" Vim filetype plugin file
2" Language: Vroom (vim testing and executable documentation)
Bram Moolenaarfb539272014-08-22 19:21:47 +02003" Maintainer: David Barnett (https://github.com/google/vim-ft-vroom)
Bram Moolenaardbc28022014-07-26 13:40:44 +02004" Last Change: 2014 Jul 23
5
6if exists('b:did_ftplugin')
7 finish
8endif
9let b:did_ftplugin = 1
10
11let s:cpo_save = &cpo
12set cpo-=C
13
14
15let b:undo_ftplugin = 'setlocal formatoptions< shiftwidth< softtabstop<' .
16 \ ' expandtab< iskeyword< comments< commentstring<'
17
18setlocal formatoptions-=t
19
20" The vroom interpreter doesn't accept anything but 2-space indent.
21setlocal shiftwidth=2
22setlocal softtabstop=2
23setlocal expandtab
24
25" To allow tag lookup and autocomplete for whole autoload functions, '#' must be
26" a keyword character. This also conforms to the behavior of ftplugin/vim.vim.
27setlocal iskeyword+=#
28
29" Vroom files have no comments (text is inert documentation unless indented).
30setlocal comments=
31setlocal commentstring=
32
33
34let &cpo = s:cpo_save
35unlet s:cpo_save