Bram Moolenaar | 9fbdbb8 | 2022-09-27 17:30:34 +0100 | [diff] [blame] | 1 | " Vim filetype plugin |
| 2 | " Language: Hare |
| 3 | " Maintainer: Amelia Clarke <me@rsaihe.dev> |
| 4 | " Previous Maintainer: Drew DeVault <sir@cmpwn.com> |
| 5 | " Last Updated: 2022-09-21 |
| 6 | |
| 7 | " Only do this when not done yet for this buffer |
| 8 | if exists('b:did_ftplugin') |
| 9 | finish |
| 10 | endif |
| 11 | |
| 12 | " Don't load another plugin for this buffer |
| 13 | let b:did_ftplugin = 1 |
| 14 | |
| 15 | setlocal noexpandtab |
| 16 | setlocal tabstop=8 |
| 17 | setlocal shiftwidth=0 |
| 18 | setlocal softtabstop=0 |
| 19 | setlocal textwidth=80 |
| 20 | setlocal commentstring=//\ %s |
| 21 | |
| 22 | " Set 'formatoptions' to break comment lines but not other lines, |
| 23 | " and insert the comment leader when hitting <CR> or using "o". |
| 24 | setlocal fo-=t fo+=croql |
| 25 | |
| 26 | compiler hare |
| 27 | " vim: tabstop=2 shiftwidth=2 expandtab |