Bug#698824: vim thinks a write-only file to be read-only

Michael Tsang miklcct at gmail.com
Thu Jan 24 05:40:37 UTC 2013


Package: vim
Version: 2:7.3.547-6
Severity: normal

Dear Maintainer,

I want to use vim to edit a write-only file by supplying the name in the
command. Of course, it says "permission denied" when opening it (because it
cannot be read!), but, however, it says the file is READ-ONLY and sets the
readonly flag! After editing the file, as vim thinks it's read only, I have to
either turn the flag off or use w! to write the file, and it is successful.

Michael



-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk
/usr/bin/vim is /usr/bin/vim.gtk
/usr/bin/gvim is /usr/bin/vim.gtk

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_HK.UTF-8, LC_CTYPE=en_HK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.51-8
ii  libc6        2.13-37
ii  libgpm2      1.20.4-6
ii  libselinux1  2.1.9-5
ii  libtinfo5    5.9-10
ii  vim-common   2:7.3.547-6
ii  vim-runtime  2:7.3.547-6

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags        <none>
pn  vim-doc      <none>
pn  vim-scripts  <none>

-- no debconf information



More information about the pkg-vim-maintainers mailing list