blob: ad04f9ac84a423138959626d68869b7fb7921b4e [file] [log] [blame]
Bram Moolenaar4c92e752019-02-17 21:18:32 +01001" Vim ftplugin file
2" Language: 8th
3" Version: any
Bram Moolenaar34cc7d82021-09-21 20:09:51 +02004" Last Change: 2021 Sep 20
5" Last Change: 2021/09/20
Bram Moolenaar4c92e752019-02-17 21:18:32 +01006" Maintainer: Ron Aaron <ron@aaron-tech.com>
Bram Moolenaar34cc7d82021-09-21 20:09:51 +02007" URL: https://8th-dev.com/
Bram Moolenaar4c92e752019-02-17 21:18:32 +01008" Filetypes: *.8th
9" NOTE: 8th allows any non-whitespace in a name, so you need to do:
10" setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
11" This goes with the syntax/8th.vim file.
12
13" Only do this when not done yet for this buffer
14if exists("b:did_8thplugin")
15 finish
16endif
17
Bram Moolenaar34cc7d82021-09-21 20:09:51 +020018" Don't load another 8th plugin for this buffer
Bram Moolenaar4c92e752019-02-17 21:18:32 +010019let b:did_8thplugin = 1
20
21setlocal ts=2 sts=2 sw=2 et
Bram Moolenaar34cc7d82021-09-21 20:09:51 +020022setlocal com=s1:/*,mb:*,ex:*/,b:--,be:\\
Bram Moolenaar4c92e752019-02-17 21:18:32 +010023setlocal fo=tcrqol
24setlocal matchpairs+=\::;
25setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
26setlocal suffixesadd=.8th
Bram Moolenaar34cc7d82021-09-21 20:09:51 +020027let b:undo_ftplugin = "setlocal ts< sts< sw< et< com< fo< mps< isk< sua<"