mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
defaults: 'showcmd', 'belloff', 'ruler'
- Vim "unix default" of 'noshowcmd' is serving few users. And it's inconsistent. - 'ruler' and 'belloff=all' improve the out-of-the-box experience. - Continue to use 'noshowcmd' and 'noruler' by default in the functional tests to keep them fast. TODO: Add a "disable slow stuff" command or mapping to address the use-case of a very slow terminal connection.
This commit is contained in:
@@ -7,14 +7,10 @@ local ok, set_session, spawn = helpers.ok, helpers.set_session, helpers.spawn
|
||||
|
||||
local shada_file = 'test.shada'
|
||||
|
||||
--
|
||||
-- helpers.clear() uses "-i NONE", which is not useful for this test.
|
||||
--
|
||||
local function _clear()
|
||||
set_session(spawn({nvim_prog,
|
||||
'-u', 'NONE',
|
||||
'--cmd', 'set noswapfile undodir=. directory=. viewdir=. backupdir=.',
|
||||
'--embed'}))
|
||||
set_session(spawn({nvim_prog, '--embed', '-u', 'NONE', '--cmd',
|
||||
-- Need shada for these tests.
|
||||
'set noswapfile undodir=. directory=. viewdir=. backupdir=. belloff= noshowcmd noruler'}))
|
||||
end
|
||||
|
||||
describe(':oldfiles', function()
|
||||
@@ -63,7 +59,7 @@ describe(':browse oldfiles', function()
|
||||
_clear()
|
||||
execute('rshada! ' .. shada_file)
|
||||
|
||||
-- Ensure nvim is out of "Press ENTER..." screen
|
||||
-- Ensure nvim is out of "Press ENTER..." prompt.
|
||||
feed('<cr>')
|
||||
|
||||
-- Ensure v:oldfiles isn't busted. Since things happen so fast,
|
||||
|
||||
Reference in New Issue
Block a user