1 "------------------------------------------------------------------------------
2 " Description: Vim Ada/GNAT compiler file
4 " $Id: gnat.vim,v 1.1 2007/05/05 18:04:19 vimboss Exp $
5 " Copyright: Copyright (C) 2006 Martin Krischik
6 " Maintainer: Martin Krischik
8 " $Date: 2007/05/05 18:04:19 $
11 " $HeadURL: https://svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/gnat.vim $
12 " History: 24.05.2006 MK Unified Headers
13 " 16.07.2006 MK Ada-Mode as vim-ball
14 " 15.10.2006 MK Bram's suggestion for runtime integration
15 " Help Page: compiler-gnat
16 "------------------------------------------------------------------------------
18 if (exists("current_compiler") &&
19 \ current_compiler == "gnat") ||
24 let current_compiler = "gnat"
27 let g:gnat = gnat#New ()
32 \ 'call gnat.Make ()')
34 \ 'GNAT.Pretty Print',
36 \ 'call gnat.Pretty ()')
40 \ 'call gnat.Tags ()')
44 \ 'call gnat.Find ()')
46 \ 'GNAT.Set Projectfile\.\.\.',
48 \ 'call gnat.Set_Project_File ()')
51 if exists(":CompilerSet") != 2
53 " plugin loaded by other means then the "compiler" command
55 command -nargs=* CompilerSet setlocal <args>
58 call g:gnat.Set_Session ()
60 execute "CompilerSet makeprg=" . escape (g:gnat.Get_Command('Make'), ' ')
61 execute "CompilerSet errorformat=" . escape (g:gnat.Error_Format, ' ')
65 "------------------------------------------------------------------------------
66 " Copyright (C) 2006 Martin Krischik
68 " Vim is Charityware - see ":help license" or uganda.txt for licence details.
69 "------------------------------------------------------------------------------
70 " vim: textwidth=0 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
71 " vim: foldmethod=marker