decada.vim 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. "------------------------------------------------------------------------------
  2. " Description: Vim Ada/Dec Ada compiler file
  3. " Language: Ada (Dec Ada)
  4. " $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $
  5. " Copyright: Copyright (C) 2006 Martin Krischik
  6. " Maintainer: Martin Krischik <krischik@users.sourceforge.net>
  7. " $Author: krischik $
  8. " $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
  9. " Version: 4.6
  10. " $Revision: 887 $
  11. " $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/decada.vim $
  12. " History: 21.07.2006 MK New Dec Ada
  13. " 15.10.2006 MK Bram's suggestion for runtime integration
  14. " 08.09.2006 MK Correct double load protection.
  15. " Help Page: compiler-decada
  16. "------------------------------------------------------------------------------
  17. if (exists("current_compiler") && current_compiler == "decada") || version < 700
  18. finish
  19. endif
  20. let s:keepcpo= &cpo
  21. set cpo&vim
  22. let current_compiler = "decada"
  23. if !exists("g:decada")
  24. let g:decada = decada#New ()
  25. call ada#Map_Menu (
  26. \'Dec Ada.Build',
  27. \'<F7>',
  28. \'call decada.Make ()')
  29. call g:decada.Set_Session ()
  30. endif
  31. if exists(":CompilerSet") != 2
  32. "
  33. " plugin loaded by other means then the "compiler" command
  34. "
  35. command -nargs=* CompilerSet setlocal <args>
  36. endif
  37. execute "CompilerSet makeprg=" . escape (g:decada.Make_Command, ' ')
  38. execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')
  39. let &cpo = s:keepcpo
  40. unlet s:keepcpo
  41. finish " 1}}}
  42. "------------------------------------------------------------------------------
  43. " Copyright (C) 2006 Martin Krischik
  44. "
  45. " Vim is Charityware - see ":help license" or uganda.txt for licence details.
  46. "------------------------------------------------------------------------------
  47. " vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
  48. " vim: foldmethod=marker