Fix a few typos in tests
Commit:
https://github.com/vim/vim/commit/b5efce0765713c3a7f3ecf3beead22ee4d120c78
Author: zeertzjq <
zeer...@outlook.com>
Date: Tue Mar 31 15:20:08 2026 +0000
Fix a few typos in tests
closes:
https://github.com/vim/vim/issues/19871
Signed-off-by: zeertzjq <
zeer...@outlook.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index 0b1b4c3cf..d197ead5c 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1,4 +1,4 @@
-*change.txt* For Vim version 9.2. Last change: 2026 Feb 14
+*change.txt* For Vim version 9.2. Last change: 2026 Mar 31
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1157,9 +1157,9 @@ inside of strings can change! Also see 'softtabstop' option. >
current line).
*:ip* *:iput*
-:[line]ip[ut] [x] like |:put|, but adjust indent to the current line
+:[line]ip[ut] [x] Like |:put|, but adjust indent to the current line.
-:[line]ip[ut]! [x] like |:put|!, but adjust indent to the current line
+:[line]ip[ut]! [x] Like |:put|!, but adjust indent to the current line.
["x]]p or *]p* *]<MiddleMouse>*
["x]]<MiddleMouse> Like "p", but adjust the indent to the current line.
diff --git a/src/testdir/test_clipmethod.vim b/src/testdir/test_clipmethod.vim
index 3e98828bf..ddf415726 100644
--- a/src/testdir/test_clipmethod.vim
+++ b/src/testdir/test_clipmethod.vim
@@ -124,8 +124,8 @@ func Test_clipreset_switches()
" hang.
" This will only happen for commands given from the command line, which
- " is why we cannot just directly call Vim or use the actual Vim instance thats
- " doing all the testing, since main_loop() is never executed.
+ " is why we cannot just directly call Vim or use the actual Vim instance
+ " that's doing all the testing, since main_loop() is never executed.
" Therefore we should start a separate Vim instance and communicate with it
" remotely, so we can execute the actual testing stuff with main_loop()
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim
index 3ae3b90e4..39b1227ae 100644
--- a/src/testdir/test_eval_stuff.vim
+++ b/src/testdir/test_eval_stuff.vim
@@ -964,7 +964,7 @@ func Test_clipboard_provider_no_unamedplus()
set clipmethod&
endfunc
-" Same as Test_clipboard_provider_registers() but do it when +clipboard isnt
+" Same as Test_clipboard_provider_registers() but do it when +clipboard isn't
" enabled.
func Test_clipboard_provider_no_clipboard()
CheckFeature clipboard_provider
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim
index 16c7e1498..6b45e8ea8 100644
--- a/src/testdir/test_highlight.vim
+++ b/src/testdir/test_highlight.vim
@@ -1431,7 +1431,7 @@ func Test_winhighlight()
call VerifyScreenDump(buf, 'Test_winhighlight_10', {})
- " Make last focused window the other window, which should have no hightlight
+ " Make last focused window the other window, which should have no highlight
" in tabline.
call term_sendkeys(buf, "\<Esc>:tabn 1\<CR>\<Esc>:wincmd h\<CR>\<Esc>:tabn 3\<CR>")
call TermWait(buf)
@@ -1462,7 +1462,7 @@ func Test_winhighlight()
call VerifyScreenDump(buf, 'Test_winhighlight_14', {})
- " Check that overridding Normal group maps to HLF_WIN in 'highlight'.
+ " Check that overriding Normal group maps to HLF_WIN in 'highlight'.
call term_sendkeys(buf, "\<Esc>:setlocal whl=Normal:ErrorMsg\<CR>")
call TermWait(buf)
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim
index 7f235dc59..bf16a9361 100644
--- a/src/testdir/test_ins_complete.vim
+++ b/src/testdir/test_ins_complete.vim
@@ -3803,7 +3803,7 @@ func Test_complete_fuzzy_collect()
call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!')
call assert_equal('completefuzzycollect', getline(line('.') - 1))
- " keywords in 'dictonary'
+ " keywords in 'dictionary'
call writefile(['hello', 'think'], 'Xtest_dict.txt', 'D')
set dict=Xtest_dict.txt
call feedkeys("Sh\<C-X>\<C-K>\<C-N>\<CR>\<Esc>0", 'tx!')
@@ -3821,7 +3821,7 @@ func Test_complete_fuzzy_collect()
call assert_equal('fuzzycollect', getline('.'))
" when 'fuzzy' is not set, and 'infercase' and 'ignorecase' are set, then
- " uppercase completes from lowercase words in dictonary
+ " uppercase completes from lowercase words in dictionary
set completeopt&
set infercase ignorecase
call writefile(['hello'], 'Xtest_case.txt', 'D')
diff --git a/src/testdir/test_plugin_netrw.vim b/src/testdir/test_plugin_netrw.vim
index a4ab956a0..ced628419 100644
--- a/src/testdir/test_plugin_netrw.vim
+++ b/src/testdir/test_plugin_netrw.vim
@@ -332,7 +332,7 @@ func Test_netrw_check_UNC_paths()
call assert_equal(
\ path,
\ Test_NetrwFile(path),
- \ $"UNC path: {path} missinterpreted")
+ \ $"UNC path: {path} misinterpreted")
endfor
endfunction
diff --git a/src/testdir/test_signs.vim b/src/testdir/test_signs.vim
index 627f6416a..870acd10d 100644
--- a/src/testdir/test_signs.vim
+++ b/src/testdir/test_signs.vim
@@ -165,8 +165,8 @@ func Test_sign()
sign define Sign5 text=X\ linehl=Comment
sign undefine Sign5
- " The use of execute in the next line is just to ensure the space for
- " the text value is obvious and does not get accidently deleted.
+ " The use of :execute in the next line is just to ensure the space for
+ " the text value is obvious and does not get accidentally deleted.
execute "sign define Sign5 linehl=Comment text=X\ "
sign undefine Sign5
diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim
index 9248c5d6b..49f34a578 100644
--- a/src/testdir/test_vimscript.vim
+++ b/src/testdir/test_vimscript.vim
@@ -7689,7 +7689,7 @@ func Test_catch_pattern_trailing_chars()
bw!
endfunc
-" Test for long gerneric type name {{{1
+" Test for long generic type name {{{1
func Test_function_long_generic_name()
func TestFunc()
return