xref: /vim-8.2.3635/runtime/ftplugin/vroom.vim (revision cb03397a)
1" Vim filetype plugin file
2" Language:	Vroom (vim testing and executable documentation)
3" Maintainer:	David Barnett (https://github.com/google/vim-ft-vroom)
4" 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
36