On Tue, Feb 01, 2022 at 06:19:43PM +0100, Diederik de Haas wrote: > On Fri, 21 Jan 2022 08:37:52 -0500 James McCoy <[email protected]> wrote: > > On Fri, Jan 21, 2022 at 03:58:58AM +0100, Robert Siemer wrote: > > > vim-tiny should come with defaults.vim, I believe. > > > > No, vim-tiny exists purely to provide a vi binary in the base system and > > therefore is geared towards a vi-like experience more so than a vim-like > > experience. > > > > This is why vim-tiny does not register itself as an option for the vim > > alternative. > > I don't know if it was the trigger for this bug report, but on a freshly > installed (very) minimal bookworm (arm64) system with vim-tiny, using it > produces the error as mentioned in the bug subject: > > $ vim.tiny .ssh/authorized_keys > E1187: Failed to source defaults.vim > Press ENTER or type command to continue
The binary vim.tiny is an implementation detail. I tried to move them under /usr/libexec, but that caused the alternatives to reset their priorities for existing installs, so it had to be reverted. The intended use is to invoke the binary through the named alternatives (vi, view, ex, editor). > After pressing ENTER, I can use it. > While I understand that vim-tiny won't give me the full vim experience, it > currently does give the above error on every invocation. > I don't recall it gave that/a error before. When invoked as vi it doesn't, because that triggers Debian's patch to only use the tiny config. I'll talk with upstream about whether an error should really be emitted when defaults.vim isn't available. I'll also look into whether there's anything that should be adjusted for the aforementioned patch. Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB

