diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 0a7c132d22..760019c409 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -77,7 +77,6 @@ Defaults *defaults* *nvim-defaults* - 'ruler' is enabled - 'sessionoptions' includes "unix,slash", excludes "options" - 'shortmess' includes "CF", excludes "S" -- 'showcmd' is enabled - 'sidescroll' defaults to 1 - 'smarttab' is enabled - 'spellfile' defaults to `stdpath("data").."/site/spell/"` diff --git a/test/old/testdir/setup.vim b/test/old/testdir/setup.vim index 81aa3f1552..eae8b9b1b3 100644 --- a/test/old/testdir/setup.vim +++ b/test/old/testdir/setup.vim @@ -19,7 +19,7 @@ if exists('s:did_load') set listchars=eol:$ set maxsearchcount=99 set mousemodel=extend - set nohidden nosmarttab noautoindent noautoread noruler noshowcmd + set nohidden nosmarttab noautoindent noautoread noruler set nohlsearch noincsearch set nrformats=bin,octal,hex set sessionoptions+=options diff --git a/test/old/testdir/test_display.vim b/test/old/testdir/test_display.vim index 70029dcf3c..721c0d76ca 100644 --- a/test/old/testdir/test_display.vim +++ b/test/old/testdir/test_display.vim @@ -187,10 +187,13 @@ func Test_edit_long_file_name() let longName = 'x'->repeat(min([&columns, 255])) call writefile([], longName, 'D') - let buf = RunVimInTerminal('-N -u NONE ' .. longName, #{rows: 8}) + let buf = RunVimInTerminal('-N -u NONE --cmd ":set noshowcmd" ' .. longName, #{rows: 8}) call VerifyScreenDump(buf, 'Test_long_file_name_1', {}) + call term_sendkeys(buf, ":set showcmd\:e!\") + call VerifyScreenDump(buf, 'Test_long_file_name_2', {}) + " clean up call StopVimInTerminal(buf) endfunc diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index 53ffe6c6ba..1268591c70 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -2903,4 +2903,16 @@ func Test_set_missing_options() set w9600=23 endfunc +func Test_showcmd() + throw 'Skipped: Nvim does not support support Vi-compatible mode' + " in no-cp mode, 'showcmd' is enabled + let _cp=&cp + call assert_equal(1, &showcmd) + set cp + call assert_equal(0, &showcmd) + set nocp + call assert_equal(1, &showcmd) + let &cp = _cp +endfunc + " vim: shiftwidth=2 sts=2 expandtab