Package: vim
Version: 2:9.1.0967-1
Severity: minor
Tags: patch

Hi, with patch 9.1.0895 Vim started defaulting to a history of 200 instead of 50. This was already the case when sourcing defaults.vim in one's vimrc, or when using no vimrc at all.

What patch 9.1.0895 done was removing the `set history=200` from defaults.vim and altering the actual history option default in the C source.

For some reason, though, Debian's `debian.vim` file contains a `set history=50` setting, which overrides the new built-in default.

The issue is manifesting itself only now that `history=200` has been removed from `defaults.vim`; before that, sourcing the file in the user's vimrc would override `debian.vim`'s override.

Could this option be dropped from `debian.vim`, please? Patch attached.

Apart from this issue in particular, though, I feel that `debian.vim`'s role should be revised. Now that Vim has a `defaults.vim` file which contains lots of goodies, some of `debian.vim`'s settings seem redundant. As an example, both of them set the `nocompatible`, `backspace`, `history`, and `ruler` options are duplicated. In my opinion, these should be removed, and the file should keep containing only some truly Debian-specific improvements and security-relevant options (like `/etc/papersize` and `nomodeline`). But this can be discussed and fixed later.

Bye!
From e334c65f65d00e53454605a83cd968a8aee32b1d Mon Sep 17 00:00:00 2001
From: Andrea Pappacoda <and...@pappacoda.it>
Date: Tue, 4 Feb 2025 15:45:09 +0100
Subject: [PATCH] Drop backspace and history from debian.vim

They are now redundant, as they have been made Vim's defaults in patches
9.1.0899 and 9.1.0895, respectively.
---
 debian/runtime/debian.vim | 2 --
 1 file changed, 2 deletions(-)

diff --git a/debian/runtime/debian.vim b/debian/runtime/debian.vim
index 0856148c4..a8ddb0110 100644
--- a/debian/runtime/debian.vim
+++ b/debian/runtime/debian.vim
@@ -1,10 +1,8 @@
 " Normally we use vim-extensions. If you want true vi-compatibility
 " remove change the following statements
 set nocompatible	" Use Vim defaults instead of 100% vi compatibility
-set backspace=indent,eol,start	" more powerful backspacing
 
 " Now we set some defaults for the editor
-set history=50		" keep 50 lines of command line history
 set ruler		" show the cursor position all the time
 
 " modelines have historically been a source of security/resource
-- 
2.47.2

Attachment: signature.asc
Description: PGP signature

Reply via email to