VIM Ada Mode
Table of Contents
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=--\ \ %25s
setlocal tabstop=8
setlocal softtabstop=3
setlocal shiftwidth=3
endif
Don’t forget to define ada_folding inside your ~/.vimrc file.