Bug#459399: vim does not see lage files and overwrites them as new on :wq

Frederik Schwarzer schwarzerf at gmail.com
Sun Jan 6 06:45:18 UTC 2008


Package: vim
Version: 1:7.1-175+2
Severity: normal

I have a large xml file (12,7 GiB) which I wanted to open in vim to
check some things before sending it to a parser we use.
vim says
'file.xml' [New File]
and shows an empty buffer.
When I now (accidently) executed ":wq", vim overwrote the large xml
file.

Well, actually the second part is kinda expected (though unfortunate)
but it would be nicer if vim saw large files in some more obvious way,
e.g. giving a warning message or something if it doesn't want to open
the file.

For the case this is a fs issue, I run ext3 here.

regards

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vim depends on:
ii  libc6                     2.7-5          GNU C Library: Shared libraries
ii  libgpmg1                  1.19.6-25      General Purpose Mouse - shared lib
ii  libncurses5               5.6+20071215-1 Shared libraries for terminal hand
ii  vim-common                1:7.1-175+2    Vi IMproved - Common files
ii  vim-runtime               1:7.1-175+2    Vi IMproved - Runtime files

vim recommends no packages.

-- no debconf information





More information about the pkg-vim-maintainers mailing list