codekingpro/portable-devtools
115k
1" Vim filetype plugin file2" Language: Haskell3" Maintainer: Daniel Campoverde <alx@sillybytes.net>4" Previous Maintainer: Nikolai Weibull <now@bitwi.se>5" Latest Revision: 2018-08-276" 2025 Jul 09 by Vim Project revert setting iskeyword #81917" 2026 Jan 18 by Vim Project add include-search and define support #191438 9if exists("b:did_ftplugin")10 finish11endif12let b:did_ftplugin = 113 14let s:cpo_save = &cpo15set cpo&vim16 17let b:undo_ftplugin = "setl com< cms< fo< su< sua< inex< inc< def<"18 19setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s20setlocal formatoptions-=t formatoptions+=croql21setlocal omnifunc=haskellcomplete#Complete22 23setlocal suffixes+=.hi24setlocal suffixesadd=.hs,.lhs,.hsc25 26setlocal includeexpr=findfile(tr(v:fname,'.','/'),'.;')27setlocal include=^import\\>\\%(\\s\\+safe\\>\\)\\?\\%(\\s\\+qualified\\>\\)\\?28 29setlocal define=^\\%(data\\>\\\|class\\>\\%(.*=>\\)\\?\\\|\\%(new\\)\\?type\\>\\\|\\ze\\k\\+\\s*\\%(::\\\|=\\)\\)30 31let &cpo = s:cpo_save32unlet s:cpo_save33 