Mercurial > vim
annotate runtime/ftplugin/hare.vim @ 33051:02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Commit: https://github.com/vim/vim/commit/f937ab32a1ac3a560f217ca4ce8305ab2d5b0b74
Author: dkearns <dougkearns@gmail.com>
Date: Tue Aug 29 05:32:27 2023 +1000
runtime: Set b:undo_ftplugin where missing (https://github.com/vim/vim/issues/12943)
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Aug 2023 21:45:06 +0200 |
parents | 1e91e26ceebf |
children | ea0402ba92f6 |
rev | line source |
---|---|
30547 | 1 " Vim filetype plugin |
2 " Language: Hare | |
3 " Maintainer: Amelia Clarke <me@rsaihe.dev> | |
4 " Previous Maintainer: Drew DeVault <sir@cmpwn.com> | |
33051
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
5 " Last Updated: 2022-09-28 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
6 " 2023 Aug 28 by Vim Project (undo_ftplugin) |
30547 | 7 |
8 if exists('b:did_ftplugin') | |
9 finish | |
10 endif | |
11 let b:did_ftplugin = 1 | |
12 | |
33051
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
13 " Formatting settings. |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
14 setlocal formatoptions-=t formatoptions+=croql/ |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
15 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
16 " Miscellaneous. |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
17 setlocal comments=:// |
30547 | 18 setlocal commentstring=//\ %s |
33051
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
19 setlocal suffixesadd=.ha |
30547 | 20 |
33051
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
21 let b:undo_ftplugin = "setl cms< com< fo< sua<" |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
22 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
23 " Hare recommended style. |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
24 if get(g:, "hare_recommended_style", 1) |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
25 setlocal noexpandtab |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
26 setlocal shiftwidth=8 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
27 setlocal softtabstop=0 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
28 setlocal tabstop=8 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
29 setlocal textwidth=80 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
30 let b:undo_ftplugin ..= " | setl et< sts< sw< ts< tw<" |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
31 endif |
30547 | 32 |
33 compiler hare | |
33051
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
34 |
02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents:
30547
diff
changeset
|
35 " vim: et sw=2 sts=2 ts=8 |