Skip to content

Commit dfcd9ac

Browse files
committed
runtime(ada): mark as unmaintained, fix a few issues with the ftplugin
closes: #18178 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent f737ff8 commit dfcd9ac

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

runtime/ftplugin/ada.vim

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
" Description: Perform Ada specific completion & tagging.
33
" Language: Ada (2005)
44
" $Id: ada.vim 887 2008-07-08 14:29:01Z krischik $
5-
" Maintainer: Martin Krischik <krischik@users.sourceforge.net>
5+
" Maintainer: This runtime file is looking for a new maintainer.
6+
" Previous Maintainer: Martin Krischik <krischik@users.sourceforge.net>
67
" Taylor Venable <taylor@metasyntax.net>
78
" Neil Bird <neil@fnxweb.com>
89
" $Author: krischik $
@@ -19,6 +20,10 @@
1920
" autoload
2021
" 05.11.2006 MK Bram suggested to save on spaces
2122
" 08.07.2007 TV fix default compiler problems.
23+
" 05.09.2025 do not globally set 'ignorecase'/'smartcase' option
24+
" set undo_ftplugin
25+
" mark as unmaintained
26+
" use buffer-local abbreviation
2227
" Help Page: ft-ada-plugin
2328
"------------------------------------------------------------------------------
2429
" Provides mapping overrides for tag jumping that figure out the current
@@ -48,8 +53,8 @@ setlocal complete=.,w,b,u,t,i
4853

4954
" Section: case {{{1
5055
"
51-
setlocal nosmartcase
52-
setlocal ignorecase
56+
" setlocal nosmartcase
57+
" setlocal ignorecase
5358

5459
" Section: formatoptions {{{1
5560
"
@@ -115,7 +120,6 @@ if !exists ("b:match_words") &&
115120
\ s:notend . '\<record\>:\<end\>\s\+\<record\>'
116121
endif
117122

118-
119123
" Section: Compiler {{{1
120124
"
121125
if ! exists("g:ada_default_compiler")
@@ -152,10 +156,10 @@ endif
152156
" Section: Abbrev {{{1
153157
"
154158
if exists("g:ada_abbrev")
155-
iabbrev ret return
156-
iabbrev proc procedure
157-
iabbrev pack package
158-
iabbrev func function
159+
iabbrev <buffer> ret return
160+
iabbrev <buffer> proc procedure
161+
iabbrev <buffer> pack package
162+
iabbrev <buffer> func function
159163
endif
160164

161165
" Section: Commands, Mapping, Menus {{{1
@@ -194,6 +198,12 @@ if !exists(':AdaTagFile')
194198
\ ':AdaTypes',
195199
\'call ada#Switch_Syntax_Option (''standard_types'')')
196200
endif
201+
"
202+
" Section: b:undo_ftplugin {{{1
203+
let b:undo_ftplugin = "setl fo< comments< tw< commentstring< complete< "
204+
\ . "| setl completefunc< omnifunc< ts< sts< sw< fdm< fde< fdi< "
205+
\ . "| setl fdm< fde< fdi< fdn< "
206+
\ . "| unlet! b:match_words "
197207

198208
" 1}}}
199209
" Reset cpoptions

0 commit comments

Comments
 (0)