patch 8.1.0711: test files still use function!
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index d3ac21c..70f6b96 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -1,6 +1,6 @@
" Test for options
-function! Test_whichwrap()
+func Test_whichwrap()
set whichwrap=b,s
call assert_equal('b,s', &whichwrap)
@@ -20,16 +20,16 @@
call assert_equal('h', &whichwrap)
set whichwrap&
-endfunction
+endfunc
-function! Test_isfname()
+func Test_isfname()
" This used to cause Vim to access uninitialized memory.
set isfname=
call assert_equal("~X", expand("~X"))
set isfname&
-endfunction
+endfunc
-function Test_wildchar()
+func Test_wildchar()
" Empty 'wildchar' used to access invalid memory.
call assert_fails('set wildchar=', 'E521:')
call assert_fails('set wildchar=abc', 'E521:')
@@ -40,9 +40,9 @@
let a=execute('set wildchar?')
call assert_equal("\n wildchar=<Esc>", a)
set wildchar&
-endfunction
+endfunc
-function Test_options()
+func Test_options()
let caught = 'ok'
try
options
@@ -53,9 +53,9 @@
" close option-window
close
-endfunction
+endfunc
-function Test_path_keep_commas()
+func Test_path_keep_commas()
" Test that changing 'path' keeps two commas.
set path=foo,,bar
set path-=bar
@@ -63,7 +63,7 @@
call assert_equal('foo,,bar', &path)
set path&
-endfunction
+endfunc
func Test_signcolumn()
if has('signs')