hare.vim (698B)
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-28 6 7 if exists('b:did_ftplugin') 8 finish 9 endif 10 let b:did_ftplugin = 1 11 12 " Formatting settings. 13 setlocal formatoptions-=t formatoptions+=croql/ 14 15 " Miscellaneous. 16 setlocal comments=:// 17 setlocal commentstring=//\ %s 18 setlocal suffixesadd=.ha 19 20 " Hare recommended style. 21 if get(g:, "hare_recommended_style", 1) 22 setlocal noexpandtab 23 setlocal shiftwidth=8 24 setlocal softtabstop=0 25 setlocal tabstop=8 26 setlocal textwidth=80 27 endif 28 29 compiler hare 30 31 let b:undo_ftplugin = "setl cms< com< et< fo< sts< sua< sw< ts< tw<" 32 33 " vim: et sw=2 sts=2 ts=8