From a89d7dcb91ae3f61b41b86ad783c5cd0a260651e Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 1 Apr 2026 07:59:51 +0800 Subject: [PATCH] docs: misc (#38578) --- runtime/doc/change.txt | 4 ++-- runtime/doc/dev_test.txt | 2 +- runtime/doc/starting.txt | 10 +++++----- src/nvim/tui/termkey/driver-ti.c | 2 +- test/functional/lua/with_spec.lua | 2 +- test/old/testdir/test_ins_complete.vim | 4 ++-- test/old/testdir/test_signs.vim | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 386e6bd3ae..cb868a0a06 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1110,9 +1110,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* *]* ["x]] Like "p", but adjust the indent to the current line. diff --git a/runtime/doc/dev_test.txt b/runtime/doc/dev_test.txt index b5f7985bae..9dffba743c 100644 --- a/runtime/doc/dev_test.txt +++ b/runtime/doc/dev_test.txt @@ -349,7 +349,7 @@ GUIDELINES - CI runs tests in parallel via the `functionaltest-parallel` cmake target. - The Nvim test instance CWD is isolated to per "test group" (see `WORKING_DIRECTORY` in `cmake/RunTests.cmake`), so tests can write files to - CWD without interferring with other tests running in parallel. + CWD without interfering with other tests running in parallel. - Luajit needs to know about type and constant declarations used in function prototypes. The [testutil.lua](https://github.com/neovim/neovim/blob/master/test/unit/testutil.lua) diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 7f22bd699b..e5513bd115 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -195,12 +195,12 @@ argument. -es reads/executes stdin as Ex commands. > printf "put ='foo'\n%%print\n" | nvim -es - -< -Es reads stdin as text (into buffer 1). Use |-c| or "+" to +< + -Es reads stdin as text (into buffer 1). Use |-c| or "+" to send commands. > printf "foo\n" | nvim -Es +"%print" - -< These commands display on stdout: +< + These commands display on stdout: • :list • :number • :print @@ -427,7 +427,7 @@ argument. To start the server on-demand with systemd, use a systemd socket unit and associated service unit running: > - systemd-socket-proxyd --exit-idle-time + systemd-socket-proxyd --exit-idle-time < ============================================================================== Initialization *initialization* *startup* diff --git a/src/nvim/tui/termkey/driver-ti.c b/src/nvim/tui/termkey/driver-ti.c index b33087e799..30633b9ccf 100644 --- a/src/nvim/tui/termkey/driver-ti.c +++ b/src/nvim/tui/termkey/driver-ti.c @@ -285,7 +285,7 @@ static int load_terminfo(TermKeyTI *ti) } // Finally mouse mode - // This is overriden in nvim: we only want driver-csi mouse support + // This is overridden in nvim: we only want driver-csi mouse support if (false) { const char *value = NULL; diff --git a/test/functional/lua/with_spec.lua b/test/functional/lua/with_spec.lua index 4dc415ea25..7150c8d9fb 100644 --- a/test/functional/lua/with_spec.lua +++ b/test/functional/lua/with_spec.lua @@ -345,7 +345,7 @@ describe('vim._with', function() exec_lua, [[ _G.f = function() - error('This error should not interfer with execution', 0) + error('This error should not interfere with execution', 0) end -- Should not produce error same as `vim.cmd('silent! lua _G.f()')` vim._with({ emsg_silent = true }, f) diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim index ce0a45f808..5d480333e7 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -3914,7 +3914,7 @@ func Test_complete_fuzzy_collect() call feedkeys("Gofuzzy\\\\\\\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\\\\\0", 'tx!') @@ -3932,7 +3932,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/test/old/testdir/test_signs.vim b/test/old/testdir/test_signs.vim index 6db31af13a..8ff14a0371 100644 --- a/test/old/testdir/test_signs.vim +++ b/test/old/testdir/test_signs.vim @@ -167,8 +167,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