Ada Programming
SearchWiki

VIM (edit)

  • AdaMode
  • WikiConvert
  • Plugins
  • Trace Remover Restorer
  • GNAT Programming System

Articles (edit)

  • Compile gcc
  • Compile GNAT/GPL
  • Compile GNAT/Pro
  • Compile XML/Ada
  • Compile ASIS
  • Compile GPS


Edit Sidebar
  1. Main?
    1. Home Page

  1. General Info
    1. Ada@Krischik

  1. Tutorials
    1. English
    2. Frensh
    3. Spanish

  1. Projects
    1. AdaCL
    2. wikibook-ada
    3. ASIS
    4. GLADE
    5. Florist

  1. PmWiki
    1. Install
    2. Editing
    3. Index
    4. FAQ
    5. Editing
    6. Notes
VIM/
Ada Mode
Read PageEdit PagePage AttributesPage HistoryUpload
Printable View

VIM comes with a nice Ada mode - however you can always improve. I have created an imporved Ada mode for vim and uploaded it to the vim side where download from.

Here a short description of what I did:

syntax/ada.vim

Attributes

Attributes can be detected by regular expressing. That way "implementation defined" Attributes are found as well:

 
 syntax match adaAttribute "'\w\{2,\}\>"

   HiLink adaAttribute	   Tag
 

Folding

Newer VIM's have this nice folding feature. Since most Ada programs are nicely layouted the foldmethod=indent should be ok:

 
 if exists("ada_folding")
   setlocal foldmethod=indent
   setlocal foldignore=--
   setlocal commentstring=--\ \ %s
   setlocal tabstop=8
   setlocal softtabstop=3
   setlocal shiftwidth=3
 endif
 

Don't forget to define ada_folding inside your ~/.vimrc file.


© 2005 Martin Krischik, Content is available under GNU Free Documentation License.

Page last modified on October 17, 2007, at 06:48 PM
  • Ada programming
  • SearchWiki
  • RecentChanges
  • AllRecentChanges
  • WikiHelp

  1. ▲ Top ▲
  2. Edit:
  3. SideBar
  4. MenuBar
  5. BottomBar
  6. GroupHeader
  7. GroupFooter