haskell.vim 551 B

1234567891011121314151617181920212223
  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. if exists("b:did_ftplugin")
  7. finish
  8. endif
  9. let b:did_ftplugin = 1
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12. let b:undo_ftplugin = "setl com< cms< fo<"
  13. setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s
  14. setlocal formatoptions-=t formatoptions+=croql
  15. setlocal omnifunc=haskellcomplete#Complete
  16. let &cpo = s:cpo_save
  17. unlet s:cpo_save