cabal.vim (603B)
1 " Vim filetype plugin file 2 " Language: Haskell Cabal Build file 3 " Maintainer: Riley Bruins <ribru17@gmail.com> 4 " Last Change: 2024 Jul 06 5 " 2026 Jan 13 by Vim project: set compiler #19152 6 " 2026 Jun 26 by Vim project: set expandtab #20623 7 " 2026 Jun 27 by Vim Project: add recommended style guard 8 9 if exists('b:did_ftplugin') 10 finish 11 endif 12 let b:did_ftplugin = 1 13 14 if get(g:, 'cabal_recommended_style', 15 \ get(g:, 'filetype_recommended_style', 1)) 16 setlocal expandtab 17 endif 18 setlocal comments=:-- commentstring=--\ %s 19 20 compiler cabal 21 22 let b:undo_ftplugin = 'compiler make | setlocal com< cms< et<'