Skip to content

Commit 1b6526a

Browse files
committed
Add deprecation warnings for deprecated options
Closes #114
1 parent 5d70905 commit 1b6526a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

autoload/ag.vim

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
" NOTE: You must, of course, install ag / the_silver_searcher
22

3-
" FIXME: Delete deprecated options below on or after 15-7 (6 months from when they were changed) {{{
3+
" FIXME: Delete deprecated options below on or after 2016-4 (6 months from when the deprecation warning was added) {{{
44

55
if exists("g:agprg")
66
let g:ag_prg = g:agprg
7+
echohl WarningMsg
8+
call input('g:agprg is deprecated and will be removed. Please use g:ag_prg')
9+
echohl None
710
endif
811

912
if exists("g:aghighlight")
1013
let g:ag_highlight = g:aghighlight
14+
echohl WarningMsg
15+
call input('g:aghighlight is deprecated and will be removed. Please use g:ag_highlight')
16+
echohl None
1117
endif
1218

1319
if exists("g:agformat")
1420
let g:ag_format = g:agformat
21+
echohl WarningMsg
22+
call input('g:agformat is deprecated and will be removed. Please use g:ag_format')
23+
echohl None
1524
endif
1625

1726
" }}} FIXME: Delete the deprecated options above on or after 15-7 (6 months from when they were changed)

0 commit comments

Comments
 (0)