fpcmake.vim 671 B

123456789101112131415161718192021222324252627282930
  1. " Vim filetype plugin file
  2. " Language: Free Pascal Makefile Generator
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Jan 14
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let s:cpo_save = &cpo
  9. set cpo&vim
  10. runtime! ftplugin/make.vim
  11. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  12. let b:browsefilter = "Free Pascal Makefile Definition Files (*.fpc)\t*.fpc\n"
  13. if has("win32")
  14. let b:browsefilter ..= "All Files (*.*)\t*\n"
  15. else
  16. let b:browsefilter ..= "All Files (*)\t*\n"
  17. endif
  18. let b:undo_ftplugin ..= " | unlet! b:browsefilter"
  19. endif
  20. let &cpo = s:cpo_save
  21. unlet s:cpo_save
  22. " vim: nowrap sw=2 sts=2 ts=8 noet: