haskell.vim (1020B)
1 " Vim filetype plugin file 2 " Language: Haskell 3 " Maintainer: Daniel Campoverde <alx@sillybytes.net> 4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> 5 " Latest Revision: 2018-08-27 6 " 2025 Jul 09 by Vim Project revert setting iskeyword #8191 7 " 2026 Jan 18 by Vim Project add include-search and define support #19143 8 9 if exists("b:did_ftplugin") 10 finish 11 endif 12 let b:did_ftplugin = 1 13 14 let s:cpo_save = &cpo 15 set cpo&vim 16 17 let b:undo_ftplugin = "setl com< cms< fo< su< sua< inex< inc< def<" 18 19 setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s 20 setlocal formatoptions-=t formatoptions+=croql 21 setlocal omnifunc=haskellcomplete#Complete 22 23 setlocal suffixes+=.hi 24 setlocal suffixesadd=.hs,.lhs,.hsc 25 26 setlocal includeexpr=findfile(tr(v:fname,'.','/'),'.;') 27 setlocal include=^import\\>\\%(\\s\\+safe\\>\\)\\?\\%(\\s\\+qualified\\>\\)\\? 28 29 setlocal define=^\\%(data\\>\\\|class\\>\\%(.*=>\\)\\?\\\|\\%(new\\)\\?type\\>\\\|\\ze\\k\\+\\s*\\%(::\\\|=\\)\\) 30 31 let &cpo = s:cpo_save 32 unlet s:cpo_save